Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

One police officer was killed and another was recovering after a shootout Sunday morning with a man who authorities said fled the scene of an accident in Utah.

Douglas Barney, an 18-year veteran of the Salt Lake County Unified Police Department, died after a single bullet struck him in the head, Sheriff Jim Winder said during a news conference.

Police officer Doug Barney was killed in a shootout in Holladay, Utah. Unified Police Department via KSL

The suspect, Cory Lee Henderson, 31, was also killed, Winder told reporters. Henderson had been wanted on state and federal warrants, police spokesman Justin Hoyle told NBC News.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

A second officer, Jon Richey, was shot three times — once in the torso and twice in the legs — but was "conscious and alert" at a hospital, Winder said, according to NBC station KSL.

A woman who authorities believe fled the accident with Henderson remained at large.

Investigators were still trying to determine what led to the confrontation in Holladay, just south of Salt Lake City, police spokesman Lex Bell told NBC News earlier Sunday. It happened Sunday morning after an officer stumbled onto a non-fatal traffic accident at 11:51 a.m. ET and discovered that two people had left the accident on foot.

Barney and other officers were then dispatched to search for the suspects. At 11:58 a.m., police found Barney, who had been shot, a few blocks from the scene of the accident, Hoyle said. Three minutes later, there was "an exchange of gunfire" between Henderson and police, and Richey was wounded, Hoyle told NBC News.

Neighbor says he heard gunshot, saw injured officer in driveway. 30-45 sec later, heard hail of gunshots @KSL5TV pic.twitter.com/x4bXgnSvpJ — Sandra Yi (@KSL_SandraYi) January 17, 2016

A resident told KSL that he heard a gunshot and saw an officer lying in the driveway. "Breathe, stay with us," a neighbor recalled hearing officers telling their injured colleague.

Bell said it was unclear whether the woman, whom he described as white and blonde, was armed, but residents were advised to shelter in place, KSL reported.

Images published by KSL showed officers with their guns drawn and a K9 dog sniffing the snow-covered sidewalks.