Updated

A 7-year-old boy was accidentally shot in a Louisiana elementary school Monday morning after a student picked up a gun that fell out of another child's backpack, investigators said.

A student was carrying the gun in his backpack when it fell out in a classroom at Moss Bluff Elementary School, Calcasieu Parish Sheriff Tony Mancuso said. Another child picked up the gun and it discharged, striking the 7-year-old boy who was standing nearby.

The boy was taken to the hospital and was in surgery as of Monday afternoon.

Officials said they would decide later whether to press charges against the parents of the student who bought the gun to school.

PITTSBURGH HIGH-RISE APARTMENT FIRE KILLS AT LEAST 1

The children involved in the incident will not be held criminally responsible, Mancuso said.

It's unclear why the student brought the gun to school.

Calcasieu Parish is a three-hour drive west of New Orleans.