Lots of jokes made, but in reality this mistake could have been made by a real human watching a video feed. The student was intentionally mimicking a weapon with a long, tubular object. It's not like he was just walking down the hall with it in his hands, and suddenly SWAT TEAM!
AI is often awful, but I'm giving it a pass on this one.