EAST COUNTY  The man accused of kidnapping Lakeside teenager Hannah Anderson after killing her mother and brother had traces of marijuana in his system when he was killed by FBI agents in the Idaho wilderness.

The toxicology reports on James DiMaggio, 40, also tested positive for prescription drugs, Valley County, Idaho, Coroner Nathan Hess said Wednesday.

Hess would not specify what type of drugs DiMaggio had taken, but said he had presciptions for them. He could not say how recently DiMaggio had consumed the marijuana.

“Whether or not that was impairing his judgment, I don’t know,” Hess said.

DiMaggio was shot six times in the head and torso on Aug. 10 after investigators located him and Hannah at a campsite in central Idaho in the Frank Church River of No Return Wilderness area.

Hannah, 16, said in an with the “Today” show that DiMaggio had lit a fire and then shot a gun into the air in order to seek help. She did not elaborate on why he might have been seeking aid.

DiMaggio died at the scene, and Hannah was scooped up by rescuers and flown to a hospital where she was reunited with her father.

Before DiMaggio took the teen against her will from his Boulevard home on Aug. 3, the telecommunications technician killed Hannah’s 8-year-old brother, Ethan, and the siblings’ mother, Tina Anderson, 44, authorities said. He also rigged his house to catch on fire, authorities said.

Anderson’s body was found bound and duct-taped in a garage on DiMaggio’s property, and the boy’s remains were found in the burned house.

Autopsies showed Anderson died of blunt-force trauma to the head. The boy most likely died in the fire, although the San Diego County Medical Examiner’s Office said his cause of death could not be definitively determined.