An 8-year-old boy suffered non-life-threatening injuries Friday after getting shot while playing with one of his parents’ guns, authorities said.

According to the Terrebonne Sheriff’s Office, the incident occurred about 5 p.m. at the 3600 block of Thomas Drive. Several children were playing near some apartments when one of them opened the trunk of his parents’ unlocked car and saw two rifles being stored there.

One of the children began playing with an A-K 47 rifle and accidently fired the weapon while it was still in the truck of the car, which struck him in the leg, authorities said.

The boy was transported to University Medical Center in New Orleans, where he was treated for non-life-threatening injuries.

Investigators ruled the shooting as accidental.