A suburban Indianapolis police officer helping serve warrants was shot and wounded overnight by a man who was then fatally shot by other officers, police said.

The officer, a three-year veteran of the Lawrence Police Department, was treated and released from a hospital after being shot in the leg Tuesday night and was expected to make a full recovery, said Lawrence Police Chief Gary Woodruff.

Lawrence and Indianapolis police officers were serving warrants for two people at a home in the northeast Indianapolis suburb about 8:30 p.m. Tuesday when the shooting occurred, said Lawrence police Commander Tracey Cantrell.

INDIANA POLICE SHOOT KNIFE-WIELDING MAN WHO CHARGED AT OFFICER

A special weapons and tactics team was on the scene because the two people being served warrants were known to carry guns and were wanted for allegedly firing guns at homes, he said.

Fort Wayne, Bloomington, South Bend crime

A Lawrence, Indiana, police officer was shot and wounded while serving warrants Tuesday. The assailant was shot and killed by other officers at the scene. (Fox News)

As officers surrounded the house, one of the two suspects came from the back of the house and fired a rifle, striking the Lawrence officer in the leg and prompting other officers to return fire, killing the man, police said.

INDIANAPOLIS POLICE SHOOT MAN BELIEVED TO BE CONNECTED TO FATAL SHOOTING

Woodruff said the officers' gunfire also hit a woman at the scene but her injuries were not life threatening, WISH-TV reported.

"It was a very fluid, rapidly evolving, very dynamic situation. We’re glad it wasn’t worse but certainly it was bad enough," he said.

CLICK HERE TO GET THE FOX NEWS APP

Authorities had not released the names of the people who were shot as of Wednesday morning.