A Baton Rouge man whose 4-year-old son accidentally shot and killed himself with his father’s gun in February 2012 pleaded guilty in state court this week to negligent homicide and weapons charges.

Shawn Marquis Dean Sr., 28, had pleaded guilty in federal court in October 2012 to drug and gun charges, the majority of which involved conduct that occurred in 2011. But one of the federal firearm charges related directly to the gun involved in Shawn Dean Jr.’s accidental death.

Dean was sentenced Monday to 118 months in federal prison, or nearly 10 years, and Tuesday to seven years in state custody. The prison terms are expected to run concurrently.

Police investigators believe Dean left his handgun out and within reach of his son, Shawn Dean Jr., who grabbed it and accidentally shot himself in the head on Feb. 8, 2012. The fatal shooting took place while the boy’s father was running an errand and the boy’s mother was sleeping, police have said.

Dean hid the gun before police arrived, but it later was found in a field near the family’s home in the 2900 block of Iroquois Street.

The home was destroyed by an arsonist about two weeks after the shooting. The power to the house had been turned off and no one was inside when firefighters arrived. A police spokesman said at the time that the fire would not hinder the police investigation because evidence had already been collected from the house.