SALT LAKE CITY — A Utah militia leader with ties to Nevada rancher Cliven Bundy has been charged with trying to blow up a rural, federally owned cabin in Arizona, federal authorities said Thursday.

An FBI agent said in charging documents that William Keebler, 57, was planning to retaliate against the federal government that he felt was harassing people and imposing overreaching grazing restrictions on ranchers. Keebler is the leader of a citizen militia group called the Patriots Defense Force in Stockton, Utah, about 40 miles west of Salt Lake City, according to the documents.

Authorities say undercover FBI employees followed Keebler as he tried to set off an explosive outside a U.S. Bureau of Land Management cabin in Mt. Trumbull in northern Arizona.

Keebler traveled to the Arizona cabin Tuesday night with militia members and undercover FBI employees. An inactive explosive was placed against the door and Keebler was handed a remote detonation device and pushed it several times, according to the FBI.

The FBI arrested Keebler in Utah on Wednesday morning. He faces one count of attempting to damage federal property with an explosive. If convicted, he could face up to 20 years in prison, according to U.S. Attorney’s Office spokeswoman Melodie Rydalch.

Keebler wore camouflage clothes and had his hands shackled in front of him during a brief hearing to inform him of the charges Thursday.

His friend Pete Olson said outside court he’d been to meetings of Keebler’s militia, but never heard any talk of violence.

“This militia group is kind of like grown-up Boy Scouts,” he said. Keebler is something of a survivalist with his own farm who often carries a gun, but Olson said he’s never known him to be around explosives.

“That’s not the Bill I like and I know, but I know that people get pushed beyond their limits sometimes,” he said.

According to the FBI, Keebler was at Bundy’s Nevada ranch during a 2014 armed standoff with federal officials who were rounding up Bundy’s cattle over unpaid grazing fees.

He was also an associate of Arizona rancher Robert “LaVoy” Finicum, who served as a spokesman for Bundy’s son, Ammon Bundy, and other ranchers involved in an armed standoff at an Oregon wildlife refuge earlier this year.

The FBI said Finicum accompanied Keebler last October when scouting out the BLM facility in Arizona. Finicum was shot and killed by authorities during a Jan. 26 traffic stop that led to Bundy’s arrest.

After Finicum’s death, Keebler and members of his militia group discussed repercussions against a government they said was harassing people and imposing overreaching restrictions on ranchers, according to the FBI.

The militia group scouted out a BLM office in downtown Salt Lake City but abandoned the idea because it was near a shopping mall and homeless population, making it highly visible. Instead, they settled on the BLM cabin in Mt. Trumbull.