It triggered an alarm, and police were on the scene in minutes.
At first, officers didn't notice anything wrong, but then they saw the ATM shaking and figured out the thief was stuck inside.
"I think they might have been a little bit surprised when the officer looked over the top of the machine and saw somebody staring back at him," said Donald Thompson of Haverhill police.
The teen was supposed to be arraigned late yesterday, but court officials say he was too sore to stand up.