A 14-year-old was shot in the neck while in the courtyard of a middle school by a fellow student.

Price Middle School (WGCL TV)

An armed officer working at the school was able to get the gun away from the unidentified  student.

Police swarmed the school of about 400 students after reports of the shooting while a crowd of anxious parents gathered in the streets, awaiting word on their children. Students were kept at the locked-down school for more than two hours before being dismissed.

Investigators believe the shooting was not random and that something occurred between the two students that may have led to it.

Atlanta Fire Cpt. Marian McDaniel also says a teacher suffered minor cuts and bruises but was treated on the scene at Price Middle School which is located in the Lakewood Heights neighborhood south of Atlanta.

Atlanta School Superintendent Erroll Davis sympathized with concerned parents who complained that it took too long for students to be released from the building. He said emergency procedures were followed according to protocol and school district officials would meet Friday to review their response.

The Associated Press contributed to this story.