The man accused of killing a Douglas County deputy and wounding four more officers and two civilians is a former lawyer who recently had become enraged at police officers.

The Douglas County coroner identified the shooter as Matthew Riehl, 37, according to a tweet from the Douglas County Sheriff’s Office. Riehl was killed in a shootout with SWAT officers.

During an afternoon news conference, Douglas County Sheriff Tony Spurlock said the suspect was familiar to law enforcement but did not have a criminal record.

Riehl began posting videos on YouTube in November expressing anger at Lone Tree Police Department officers, particularly one officer who appeared to have pulled him over in a traffic stop.

The week before Christmas, Riehl posted a video of himself wearing an Iraqi Freedom Veteran cap where he announced he was running as a libertarian for Douglas County sheriff. He then went on a rambling rant about a specific deputy he accused of being a pimp, and he called Spurlock a clown. He did not threaten violence.

In another video about Dodge vehicles, Riehl accuses “fake LEO,” an acronym for law enforcement officers, of following people in stolen Dodge cars.

Riehl also had posted dozens of videos of himself playing video games and one of himself playing with a yo-yo.

Riehl was an Army veteran and had worked at some point as a lawyer in Rawlins, Wyo.

A spokeswoman with the National Guard confirmed to Denver7 that Riehl entered the Army Reserves in 2003 and served in the Wyoming National Guard starting in 2006. The spokeswoman said Riehl was deployed to Iraq in 2009 and was honorably discharged in 2012.

It appears most of Riehl’s legal career was spent in Wyoming.

At one point he worked with Macpherson Kelly & Thompson, but in 2014 he opened his own practice, according to a notice from the Rawlins-Carbon County Chamber of Commerce in Rawlins, Wyo.

Riehl, as a legal intern, worked with the state of Wyoming on a case involving the appeal of a defendant named Blake Leavitt. Police in Afton, Wyo., in 2009 responded to reports of a man spinning his tires and then began a high-speed chase. The court found Leavitt attempted to run over an officer when his car was cornered. Riehl worked on the team representing the state of Wyoming, according to the website FindLaw.

Another case he assisted with while an attorney at MacPherson Kelly & Thompson involved a general contractor who sued the town of Baggs, Wyo., over whether a payment was a “final payment.” Riehl was on the losing side in that civil case, FindLaw said.

Riehl voluntarily withdrew his membership in the Wyoming State Bar in October 2016, said Sharon Wilkinson, a spokewoman for the group.

“That was an indication that he was no longer interested in practicing law in Wyoming. Therefore, he is not licensed to practice in Wyoming,” she said.

Caryn Ann Harlos, a spokeswoman for the Libertarian Party of Colorado, also said Riehl was not registered with the party and never one of its candidates.

“We neither show him as a member nor even as anyone who made an inquiry,” she said. “We repudiate any kind of violent actions against the government.”