The FBI has arrested an Oklahoma man on charges that he tried to detonate what he thought was a 1,000-pound bomb outside a bank, acting out of a hatred for the U.S. government and an admiration for 1995 Oklahoma City bomber Timothy McVeigh, according to court papers.

Jerry Drake Varnell was arrested shortly after a Friday night attempt to detonate a fake bomb packed into what he believed was a stolen cargo van outside the bank in Oklahoma City, according to a criminal complaint filed in federal court.

According to the complaint, over the course of a months-long undercover investigation by the FBI, Varnell made repeated statements about the extent of his hatred of the federal government.

The complaint said Varnell expressed a desire to blow up buildings, but in a way that would minimize deaths or casualties, possibly by detonating the device at night when offices would be mostly empty.

Authorities said Varnell attempted to detonate the fake bomb at 6:30 p.m. Friday. He was taken into custody shortly after midnight, according to the complaint.