A man was shot dead by a SWAT team on the steps of a Georgia courthouse on Friday after he tried to storm the building armed and allegedly ready to take hostages. 

WSB-TV reports Dennis Marx, 48, unsuccessfully tried to drive his car into the Forsyth County Administration Building around 10:30 a.m. Deputy Daniel Rush approached Marx, and Marx shot Rush in the leg, injuring him. Marx proceeded towards the building, firing shots from an assault rifle, and throwing "stop sticks on the road so that cars could not approach," according to Forsyth County Sheriff Duane Piper. Marx was also armed with gas grenades and makeshift handcuffs, Piper said. He intended to take hostages once inside.

“The only way I can describe it is in a frontal assault on our courthouse,” Piper told WSB-TVThankfully, a SWAT team was already suited up and on the road. One short detour, and they arrived at the courthouse: 

The SWAT team, which was on its way to a separate incident, arrived at the courthouse within 37 seconds. Marx was shot dead in front of the court house a short time later.

Marx was due in court Friday on marijuana and guns charges. His attorney said she recently urged him to take a psychiatric evaluation, but he refused. "He was obsessed with not going to jail,” Marx’s former attorney Ann Shafer told WSB. He was a gun buyer and collector.

Authorities said Marx's home was rigged like a "bomb" when they arrived, and it was clear he had not lived there for over a week. 

The 25-year-old deputy was rushed to a local hospital and expects to make a full recovery. No civilians or innocent bystanders were injured.