By The Associated Press

MILWAUKEE — A domestic violence suspect opened fire on a Milwaukee police officer who was sitting in his squad car early Sunday, seriously wounding him before fleeing and apparently killing himself shortly afterward, authorities said.

The suspect, a 20-year-old man from the suburb of West Allis, had two felonies on his arrest record, said police spokesman Sgt. Tim Gauerke, who did not disclose the man's name. The 31-year-old officer was taken to a hospital with serious wounds that weren't considered life-threatening, he said.

"This is just another example of the risks our officers take each and every day to protect these citizens," Assistant Milwaukee Police Chief William Jessup said at a morning news conference.

Officers responded to several calls in the 3500 block of South 17th Street early Sunday, including two domestic violence-related calls in which the suspect was no longer there when the officers arrived, Gauerke said.

The officer was sitting in his squad car conducting the investigation at about 2 a.m. when a suspect approached on foot and fired at the officer, striking him several times, Gauerke said. About a half-hour later, officers heard a nearby gunshot and found a man who had apparently shot himself in the head, killing himself.

Investigators believe the dead man was the suspect in the domestic violence incidents and the person who shot the officer, Gaurke said. The name of the officer, a 13-year police veteran, was not immediately released.

Jessup said he did not know if there was any video evidence from the squad car's dashboard camera or the officer's body camera, WISN-TV reported.

Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.