Then the first teacher should have confiscated it and told him to get it after the school day. High schools these days are much more wary of items than when I went to school. Ask any Middle Schooler around us if they would EVER bring such a device (unless it was an APPROVED science experiment) and the answer would be no.
And this
Assuming the kid is telling the truth about showing it to his teacher