You were probably in very close proximity to a nerve. If you actually hit a nerve, it would hurt/burn like a mother F-er. Twitching means you were probably very close to one.
Or you pinned into a muscle that was flexed and not relaxed. If I try to pin my quad straight legged instead of sitting with my leg relaxed and bent...the muscle twitches like a donkey with Parkinsons.