A 4-year-old took a loaded handgun to his South Texas elementary school on Wednesday, and the child’s father has been arrested after the incident prompted a lockdown.

School administrators at John F. Kennedy Elementary School in Corpus Christi learned a student had a weapon on campus around 9 a.m. and quickly implemented lockdown procedures, according to a letter sent to parents from West Oso Independent School District Superintendent Conrado Garcia.

An off-duty Corpus Christi police officer providing security at the campus was called in around 9:15 a.m. and secured the weapon without incident. The school district relies on the Corpus Christi Police Department for security.

Police said officers went to the child’s home to investigate and identified the child’s parents as the gun owner. Paul Torres, 30, was arrested and charged with making a firearm accessible to children and endangering a child.

Conviction on the latter charge carries a maximum punishment of up to two years in prison, police said. Torres was booked into the Nueces County Jail Wednesday evening, and bond information was not immediately available.

Police did not specify the type of gun brought to the school.

“While we do not believe that students and staff were in any kind of imminent danger, as a precaution, the campus had increased police presence and maintained a higher level of security at the school until the Corpus Christi Police Department gave us an ‘all clear’ at 10:30 a.m.,” Garcia said in the letter to parents.

District administrators and the superintendent “responded immediately and arrived on campus to assist with monitoring this lockdown,” Garcia wrote in the letter.

Corpus Christi police urged gun owners to ensure their weapons are properly secured and to check them frequently.

“We recommend that all guns are unloaded, trigger locked, and in a locked gun safe, or pistol box with the ammunition locked away separately,” police said in a news release. “Keys for the guns and ammunition should be located out of reach of children, away from the weapons and ammunition.”