It's been done, and it tends to not end well.
The incident at Seaside High School occurred about 1:20 p.m. local time, when a teacher accidentally discharged his firearm in a classroom, the Seaside Police Department said in a statement.
The teacher — identified as Randall Davidson, 53 — initially barricaded himself in an empty classroom at about 11:30 a.m. ET as confused students tried to get in, police spokesman Bruce Frazier said at a news conference. There were then reports that a gun was fired. Davidson, a social studies teacher, surrendered after 30 to 45 minutes, police said.