A 10-year-old boy has been charged after authorities say he brought a loaded gun to his Detroit school.

The fourth-grade student brought the gun Wednesday, Dec. 5 to Spain Elementary-Middle School in his book bag, Wayne County Prosecutor Kym Worthy told WXYZ-TV. Another student saw the gun and reported it to school officials. The gun was confiscated and no one was hurt.

The boy has been charged in juvenile court with carrying a concealed weapon and possession of a weapon in a weapon-free school zone.

A preliminary hearing was held Thursday for the boy, and he was given a $5,000 personal bond. A pretrial hearing is scheduled for Jan. 7.

The school district notified parents of the incident with a robocall.

The boy was expelled from the school, reported WDIV-TV.