Killed: Corporal Nate Carrigan, a 13-year veteran, was shot dead Wednesday in Bailey, Colorado

A man who spent years fighting the foreclosure of his Colorado home and ranted online about police and corporate corruption shot three law enforcement officers trying to serve an eviction notice Wednesday, killing one and wounding the others, authorities said.

The officer killed at the scene has been identified as Corporal Nate Carrigan, a 13-year veteran of the Park County Sheriff's Office.

The officers fired back in this forested mountain community, killing the gunman, who was identified by police as 58-year-old Martin Wirth and has been pictured lying dead in the snow outside his house.

Eight officers went to the snow-covered two-story home in a hillside neighborhood north of the town of Bailey to serve what authorities described as a 'high-risk' eviction notice. The well-maintained houses sit on big lots, with room for horses to graze in an area popular with hunters and anglers.

Wirth appeared on the deck of his home when the officers arrived, then went back inside, according to the sheriff's office account of the shooting.

Officers followed him in, and Wirth fired on them, prompting them to return fire, sheriff's officials said.

The shooting killed Carrigan. One of the wounded officers underwent surgery for life-threatening injuries and was in critical condition at a Denver hospital.

The body of the shooting suspect, identified as activist Martin Wirth, is visible outside the Denver property where he was killed after he shot dead a sheriff's deputy on Wednesday

The other was treated and released from a hospital after a bullet grazed his ear, Colorado Bureau of Investigation spokeswoman Susan Medina said.

Scores of people attended a vigil Wednesday night for Carrigan at Platte Canyon Community Church. Some wrote remembrances and prayers on sheets of paper lining the church walls.

Wirth owned the home until March 2014, when Fannie Mae, the government-controlled mortgage company, took ownership after he lost a court battle over his foreclosure. according to The Denver Post. Wirth also once ran for Senate.

A picture of the property this evening from Denver7 News shows the body of Wirth lying in the snow outside, with armed officers standing guard close by.

After Wirth lost his case in state court, he sued Colorado Gov. John Hickenlooper, the state attorney general and a judge in 2013. The federal lawsuit claimed that state foreclosure laws were unconstitutional and that Wirth and his unnamed guests were 'in imminent danger of being wrongfully deprived of home and property while also being threatened with an armed and forcible entry onto the property and into the home.'

Property owner: Occupy Denver activist Martin Wirth (pictured at a protest) was shot dead during the shooting

He asked a federal judge to block Park County from selling his home, evicting him or forcibly entering the house and to strike down several state laws. A federal judge dismissed the lawsuit last September.

A website by a group called the Colorado Foreclosure Resistance Coalition includes undated posts that called for supporters to join Wirth in 'non-violent eviction resistance.' The website includes a video of a man identified as Wirth railing against mortgage companies as criminals.

A call to the group, whose website says it is part of the Occupy movement, was not immediately returned.

Tim Holland, who was involved in the Occupy Denver movement with Wirth, struggled to reconcile the shooting with his memories of Wirth as a 'sweet, quirky, kindhearted guy.'

'It seems to me that he was just pushed to the end of his rope, and he tried every single approach to addressing his grievances, and at the end, he chose to not let them take his house away from him,' Holland said. 'It's the middle of winter in the mountains. Where was he going to go?'

Wirth ran for the state Senate in 2014 as a Green Party candidate, but he lost to an incumbent Republican. In a candidate questionnaire he completed for The Denver Post, Wirth wrote of corruption in the political system, his support for Colorado's marijuana laws and the plight of the poor.

The home: The suspect at the home at 36 Iris Drive in Bailey (pictured) , 50 miles from Denver, opened fire on the deputies with a rifle. One deputy died and two others are wounded. The suspect also died

When asked whether he supported the death penalty, Wirth wrote, 'Killing people to show that killing people is wrong is a piece of idiotic hypocrisy.'

He wrote disparagingly of police, the federal government and corporations on his candidate page on Facebook and praised former National Security Agency contractor Edward Snowden, who leaked millions of documents about government surveillance. He made regular posts criticizing leading presidential candidates from both parties.

Neighbor Terry Rogers, a counselor and pastor at Platte Canyon Community Church, said he did not know Wirth well and believes no one in the area did.

'He was pretty reclusive,' said Rogers, who could see law enforcement vehicles responding to the shooting across a snow-covered pasture from his driveway.

Martin Wirth (pictured) also once ran for Senate. Wirth had supporters fighting for him to stay at the home prior to being served an eviction notice

The area of rocky, pine-covered hills is about 45 miles southwest of Denver where several camps host Girl Scouts and other youth during the summer. The neighborhood is several miles outside Bailey, a hamlet of just a few restaurants and shops.

Sam Lung, who lives nearby, said he often hears gunshots in the area, which has a target practice site.

He said people often shoot in their backyards, 'practicing their Second Amendment rights.'

He said he did not hear the gunshots Wednesday.

'It is a dark day,' Medina said.

The male suspect died after opening fire on the deputies.

The picturesque town is no stranger to tragedy. It is where a gunman took several girls hostage in a high school classroom a decade ago, killing one of them before himself.

Duane Morrison, a 53-year-old drifter, held the girls for nearly four hours and sexually assaulted them in September 2006.