ATLANTA (AP) — A student opened fire at his middle school Thursday afternoon, wounding a 14-year-old in the neck before an armed officer working at the school was able to get the gun away, police said.

Multiple shots were fired in the courtyard of Price Middle School just south of downtown about 1:50 p.m. and the one boy was hit, Atlanta Police Chief George Turner said. In the aftermath, a teacher received minor cuts, he said.

The wounded boy was taken “alert, conscious and breathing” to Grady Memorial Hospital, said police spokesman Carlos Campos. Grady Heath System Spokeswoman Denise Simpson said the teen had been discharged from the hospital Thursday night. Campos said charges against the shooter were pending.

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.