CHICAGO (CBS) — A man who barricaded himself in a home Sunday fired a shot at a squad car before he surrendered to police in southwest suburban Wilton Township.

John Patrick Thomas has been charged with aggravated discharge of a firearm and was booked into the Will County Adult Detention Facility shortly before 7 p.m., according to the Will County sheriff’s office. His bond was set at $1 million on Monday.

READ MORE: Two Simeon High School Students, Both 15, Killed In Shootings Four Hours Apart

Earlier Sunday, deputies received a call of a despondent subject who had threatened his brother and father in the 13000 block of Kennedy Road in unincorporated Wilton Township, police said.

READ MORE: Chicago Weather: High Waves, Dangerous Conditions Along Lakefront

A Will County Forest Preserve officer arrived first at the scene, police said. Shots were fired and at least one bullet struck his squad car. He was able to retreat safely and called for assistance.

The Will County SWAT team negotiated with Thomas until he surrendered without incident, police said. He was scheduled to appear in court on Monday.

MORE NEWS: Englewood Semi-Truck Driver Found Crushed Between His Truck And Trailer

(Source: Sun-Times Media Wire © Chicago Sun-Times 2017. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)