Story highlights

Officer Douglas Barney, an 18-year veteran of law enforcement, is killed

Officer Jon Richey is injured

Police arrest a female suspect who is being questioned in connection with the shooting

(CNN)One police officer was killed and another one injured Sunday in Utah. A gunman was also killed.

The violence began when officers from the Unified Police Department of Greater Salt Lake responded to a traffic accident and began to search for two suspects who had fled.

Officer Douglas Barney, 44, located the male suspect, who then shot the officer, police said.

Additional officers responded to the scene.

There was a shootout between them and the suspect, during which Officer Jon Richey, 51, was injured and the gunman -- identified as Cory Henderson, 31 -- was killed, police said.

Read More

Officers Barney and Richey were transported to an area hospital where Barney later died as a result of his injuries. He was an 18-year veteran of law enforcement.

Richey was described by police as being in serious condition, but improving.

"Today a husband and father left his wife and three children, put on a badge, and promised to return home soon. On behalf of Utah residents from across the state, our hearts are broken for the family of Officer Doug Barney who gave the ultimate sacrifice today while in the line of duty," Utah Gov. Gary Herbert said in a statement.

Police spokesman Lt. Lex Bell told CNN that a female suspect has been arrested and is being questioned in connection with the shooting.

"She matches the description of a woman who was walking away from the scene of the accident and she is one of many female acquaintances of the suspect. At this point she is just being held for leaving the scene of an accident," Bell said.

The spokesman also said that Henderson had been wanted for a state parole violation and a federal arms violation.