Sometimes when they get stressed or feel very unsafe they will do that to scare the predator/enemy away, Did something very stressful happen? Possibly when you were handling him?