A 12-year-old Brooklyn student was arrested Tuesday after allegedly bringing a gun to school.

It happened Tuesday afternoon at JHS 50 in Williamsburg.

Police say a school officer found the boy with an unloaded 9mm gun.

He was arrested without incident. 

Residents NY1 spoke with say they're surprised.

"Back in the day, that would maybe be a common story. But now, that that's happening, it does surprise me. Especially because this school has taken strides to create more initiatives to improve on more fronts," said one resident.

"It's shocking because you don't expect that from little kids, so it's kind of like, what's going on? You know, like, who's raising these kids?" said another.

The Department of Education and NYPD are investigating the incident.