A man has been arrested and charged after authorities say his 11-year-old grandson brought a loaded gun into his school in Queens.

Kenneth Miley, 54, faces charges that include criminal possession of a weapon, reckless endangerment and endangering the welfare of a child.

Investigators say the 11-year old brought the gun seen above into P.S. 40 in Jamaica on Tuesday.

Police say school officials found it in his backpack with one live round in the magazine.

While being interrogated, authorities say the boy told police the gun belonged to his grandfather.

Parents NY1 spoke with at the school were upset.

"Wow that's crazy," said one parent. "Like, but nobody notified me. But they notify me for anything else, when my child is sick, but come on, this is something serious. A gun? Come on, and you don't notify nobody's parents? It's crazy."

Miley was arraigned Wednesday night.

His attorney says Miley found the gun in his yard and had every intention of turning it in.

The Department of Education says they are working with police as the investigation continues.

The Administration for Children's Services is also investigating.