A female student was allegedly shot inside the Communications Technology High School in Southwest Philadelphia Thursday morning.
A boy shot the girl inside the school shortly after 10. It wasn't clear if the shooting was intentional or accidental.
The 15-year-old sophomore victim was expected to be OK, said Philadelphia School District Public Safety Director James Golden.
The girl suffered a graze wound to the neck and was taken to CHOP where she was in stable condition, officials said.
The sophomore boy was taken into custody, said police.
Originally it was reported that the girl was hurt by a BB gun but police hadn't yet recovered any weapon and wouldn't rule out that a real gun was possibly used. There were also reports that that the girl was hurt by a firecracker -- this was denied by officials.
The school, located at 8110 Lyons Ave., was on lockdown as police tried to figure out what happened. Students began to be dismissed a little after 3 p.m.
Police took K-9s into the school to try and recover the weapon but were unsuccessful. It was believed that the weapon was possibly handed off to another student who took it out of the school.
It wasn't clear how the boy managed to get a weapon into the school considering that there are metal detectors at school entrances.
Students were sent home with a letter to explain the incident to their parents.
Fan, follow and download: Get the latest from NBCPhiladelphia.com anytime, anywhere. Also get breaking news delivered right to your mobile phone -- just text PHIBREAKING to 639710 to sign up. (Message and data rates may apply.)