SANTA CRUZ (CBS SF) – Police in Santa Cruz on Tuesday detained an 11-year-old boy who barricaded himself into a classroom and allegedly had plans to harm fellow elementary school students, authorities said.

According to a press release issued by the Santa Cruz Police Department, officers were called to Bayview Elementary School at about 2:20 p.m. Tuesday after reports of a student exhibiting aggressive and threatening behavior.

READ MORE: Air Attack, Calming Winds Aid Firefighters Battling Wildfire Near Big Sur; Containment Grows To 25 Percent

School officials said the 11-year-old male student physically acted out, causing concern. School officials followed established protocol and guided the other students from the room for safety’s sake as they waited the arrival of police. Officers were on the scene within minutes and detained, the student who had barricaded himself in the classroom.

READ MORE: Deadly Hit-And Run Marks Sixth Pedestrian Fatality in San Jose in 3 Weeks

The student was safely removed from the school and taken to a care facility. Police were able to determine after further investigation that the 5th-grade student planned to harm specific students. The student’s family cooperated with police and school administrators in the investigation. Police were able to recover one firearm from the child’s home.

Police worked with administrators to provide notification of the incident to parents and staff at the school. Department officials said the case underscored the importance of the working relationship between Santa Cruz schools and the police.

MORE NEWS: Wild Fan Celebration Erupts Following San Francisco 49ers Last-Second Playoff Win

Police did not say what disciplinary action would be taken with the boy in connection with the incident.