A gun was found in the backpack of a student at Somerset Academy Lakes in suburban West Palm Beach, according to a Facebook post by the principal.
The tuition-free public charter school is located at 2845 Summit Blvd. and serves kindergarten through 5th-grade students.
The principal said a teacher found the gun in the backpack of an early childhood student before classes began.
The school said the child did not intend to bring the weapon to campus and didn't know it was in the backpack.
When the weapon was found the classroom was secured, students were removed and no one was ever in danger, the school said.
Police are conducting an investigation.