FRESNO, Calif. (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: Survivors Of Two Pandemics Credit Pets With Helping Them Survive

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.

READ MORE: California's Capitol Lit-Up Pink for Second Night, Women Talk End of Roe v. Wade

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.

MORE NEWS: Vehicle Crashes Into Heritage Oaks Hospital In Sacramento

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