I’m inclined to say the sexual revolution is more responsible for this one than the Second Amendment. It sounds to me like this guy was an “incel,” and he didn’t like it one bit.
Not only that, but the 16-year-old classmate he hoped would relieve him of his involuntary celibacy ran out of patience with his very aggressive advances, and decided to humiliate him right in class in order to make the point.