ELDRIDGE — Court documents recount a harrowing scene inside a North Scott Junior High School classroom on Aug. 31.

A 12-year-old boy allegedly walked into a classroom with a black Smith & Wesson .22-caliber handgun and ordered everyone to the floor. He pointed the gun at the teacher's face and pulled the trigger, but it did not go off because he forgot to take the safety off, according to the arrest affidavits filed Tuesday in Scott County Juvenile Court.

The teacher wrestled the gun away from him. Eldridge police were called to the junior high school, 502 S. 5th St., around 8:30 a.m. The school was put on lockdown and police seized the gun, which was "fully loaded" and had one round in the chamber, and secured it.

The affidavits do not say how or where the boy got the gun. Eldridge Police Chief David Kopatich declined to comment Friday on the allegations in the arrest affidavits.

The boy has been charged with attempted murder, carrying weapons on school grounds, both felonies, and assault while displaying a dangerous weapon, an aggravated misdemeanor.

This week, Associate Judge Cheryl Traum ordered the boy to remain in the custody of the Scott County Juvenile Detention Center. A detention review hearing is scheduled Monday.

The Quad-City Times is not naming the boy because it has not been determined if he will be tried as a juvenile or as a youthful offender in adult court.

Assistant Scott County Attorney Dion Trowers on Tuesday filed a motion to try the boy as a youthful offender.

If granted, he would be tried in adult court and, if convicted, would be sentenced in and remain under the supervision of the juvenile court until just before his 18th birthday.

The case then would return to adult court, where a judge could dismiss the case or sentence the boy to prison, among other sentencing options.

A pre-hearing conference also will be held Monday.

Kopatich and North Scott Community Schools Superintendent Joe Stutting on Tuesday thanked middle school staffers, along with Eldridge police and the Scott County Sheriff's Department for their handling of the incident.

The district implemented its safety plan the day of the incident, the chief and superintendent said in a media release. Extra counselors and more police presence were added Tuesday. The incident will be analyzed in the coming days, they said in the release, along with the response to it and the procedures and policies that were implemented.