FRESNO, Calif. (AP) — A Northern California man has been arrested for allegedly leaving a loaded gun out in his home that a 2-year-old boy used to fatally shoot himself.

The Fresno Bee reports 35-year-old Oscar Ramos was arrested Monday on criminal storage of a firearm and child endangerment charges.

READ MORE: UPDATE: Fremont Sexual Assault Suspect Now Charged in 3rd Case; Additional Victims Sought

Fresno police say the toddler, Jace Alexander, shot himself in the head in Ramos’ Fresno home on Saturday and later died at a hospital.

Ramos was not related to the boy but shared the home with his father, who was not there at the time.

READ MORE: A Surprise Hit, Filipino-Theme Home Movie Filmed in Daly City Spawns Sequel

California law requires guns to be stored in a locked device, and failure to do so can result in up to three years in prison.

It was not immediately clear if Ramos has an attorney.

MORE NEWS: COVID Reopening: East Bay Moviegoers Carefully Step Back Into Theaters

© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.