It's a slang term, often used in a violent or threatening context.
For example:
* "He got shanked in prison."
* "They threatened to shank me if I didn't give them my money."
It's important to note that "shank" is a very negative and violent term. It should only be used in situations where it is appropriate and accurate.