INDIANAPOLIS (AP) — A veteran Indianapolis police officer was shot and killed after he and another patrolman exchanged gunfire with a suspect in an alley Saturday night.

Officer Perry Renn, 51, was pronounced dead at a hospital following the 9:30 p.m. shooting, Indianapolis Metropolitan Police Department spokesman Lt. Christopher Bailey told The Associated Press early Sunday morning. Bailey said Renn had been with the IMPD for nearly 22 years.

Renn and another officer responded to a call about shots being fired and went to the alley, where they exchanged shots with 25-year-old suspect, Major David Jr. Bailey said the suspect also was shot and remained in critical condition.

An investigation is ongoing.

"Yes, an officer was attacked tonight, but the city of Indianapolis was attacked tonight," Public Safety Director Troy Riggs said earlier at the hospital. He said Renn was the eighth police officer shot during the last 18 months.

The shootings are the latest in a violent year for Indianapolis, which is on track to rival its record of 162 homicides, set in 1998. A shooting in a bar-hopping Indianapolis neighborhood injured seven people early Saturday.