PIONEER (CBS13) – A Pioneer man is in custody, accused of walking behind an elementary school with a shotgun, the Amador County Sheriff’s Office said on Thursday.

The principal of Pioneer Elementary School called 9-1-1 to report the man shortly before 10 a.m., deputies said. They stated the suspect was walking the back fence line armed with the shotgun.

READ MORE: 1 Dead, 5 Hospitalized After Violent Night In Stockton

The sheriff’s office said the school had accounted for all students and teachers prior to law enforcement’s arrival. Deputies set up a perimeter and were informed that the man had walked into the woods behind the school.

(credit: Amador County Sheriff’s Office)

After receiving a description of the man, investigators went through records to determine possible involved parties in the area and attempted to make contact with a man who matched the description, the sheriff’s office said.

READ MORE: Coast Guard: 1,200-Foot Ship Dragged California Oil Pipeline

Deputies said the man was confrontational when they arrived at his home and he refused to comply. Though he resisted, the man was eventually arrested. He was identified as Michael Daniel Wilson, 61.

A loaded shotgun matching the description of the gun seen earlier and a loaded handgun were located outside Wilson’s residence.

Wilson reportedly admitted to deputies that he was high and drunk at the time he was at the school. Detectives said they located around 25 grams of meth, paraphernalia and additional firearms in Wilson’s home.

MORE NEWS: Sacramento Non-Profit Aims To Help Single Moms During Holidays

He faces charges of child endangerment, resisting arrest and various drug- and weapons-related charges.