FRESNO (CBS/AP) — An elementary school superintendent in Central California says he allowed a janitor to wear a mask and carry a fake gun during an active-shooter drill to “make sure this was realistic.”

A teacher told KSEE-TV that the drill, which happened at Raisin City Elementary School before the summer break, went too far.

READ MORE: Vandals Smear Chauvin Defense Witness' Former Santa Rosa Home With Pig's Blood

Kim Copper said the masked gunman pounded on her classroom door and tried to open it as she huddled in a corner with terrified students.

School Superintendent Juan Sandoval admitted teachers and students were not told about the janitor’s role. He said active-shooter drills have become routine and he wanted students to understand the gravity of the situation.

READ MORE: After a Night of Protest Vandalism, Oakland Businesses Pick Up the Pieces

A school board official told the station the school will improve its active-shooter training procedure.

READ MORE: Raisin City Superintendent has school janitor wear mask and carry fake gun in active shooter drill

MORE NEWS: Stimulus Check Latest: Is A Fourth Relief Payment Coming?

© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report