A preschool-age child in Troy, Michigan shot himself after finding a gun in the console of his mother’s Ford Mustang, the Detroit Free Press reported on Friday.

According to the paper, while his mother loaded groceries into her car in a Kroger parking lot, the child found the 9 mm Smith and Wesson and shot himself in the side. The wound was not fatal and the child is out of surgery, Troy Police Captain Robert Redmond told the Free Press.

Redmond said that it was unclear whether the gun was left in the car by the boy’s mother or her husband, but that “she’s still responsible for the child’s safety.”

He reported that police plan to present a warrant request to county prosecutors for “some type of charge,” which may be careless and reckless use of a firearm.