PROVIDENCE, R.I. (WPRI) — A Providence middle schooler has been charged after a ghost gun was found inside his backpack Wednesday afternoon, according to police.

Providence Police Maj. David Lapatin tells 12 News a teacher at Delsesto Middle School found the firearm and an extended magazine inside the student’s backpack. Lapatin said the magazine was loaded, but not attached to the gun when it was discovered.

The teacher called police and the student was taken into custody. Lapatin said the school was not placed into lockdown.

The student, who is under the age of 18 and has not been identified, is charged with carrying a firearm on school grounds. He’s currently being held at the R.I. Training School.

In a letter to parents, DelSesto principal Suzanne Madden explained that the district’s security policies and protocols were followed. The district explained that the school was not placed into lockdown because the weapon was secured and there was no active threat.

Police also indicated to the district that the firearm and magazine were incompatible and could not be used together, Madden added.

“We have no confirmation that the gun was brandished or any threats were made to any member of our school community,” she wrote.

It’s unclear how the student obtained the gun and magazine. The incident remains under investigation at this time.

This comes three weeks after a student at Harry Kizirian Elementary School reportedly brought a bullet to school and showed it to their classmates.

The bullet was immediately confiscated and the student’s parents were notified, according to interim principal Fabiola Morino.

“Please remember that any type of bullet or weapon, real or fake, is an inappropriate item for school and presents a safety concern for our students and staff,” Morino wrote in a letter to parents last month.