An unknown shooter opened fire on two Detroit police officers with an assault-style rifle about 11:30 p.m. Tuesday.

The shooter fired at least 10 gunshots at the officers and struck their patrol vehicle three times, Detroit Police Chief James Craig said Wednesday.

No officers or members of the public were injured and Craig said investigators recovered a rifle they believe was used in the shooting.

The police officers initially responded to break up a suspected illegal dice game involving gambling when they heard nearby gunshots and went to investigate.

"As the officers were under fire, the officers made an attempt to get out of their vehicle. In fear for their life, they engaged with the suspect, fired multiple rounds," Craig said. "We are extremely fortunate the officers were not hit by gunfire."

Police identified a suspect, who turned himself in Wednesday. Craig said about noon Wednesday the man is now considered only a "person of interest" in the case, and has not been identified as the shooter.

He was still in custody and was being questioned further.

Craig called the attack on police tragic.

"I've been very vocal about what's been going on across America today," Craig said.

"... We're sitting on four issues that are over in the prosecutor's office right now, waiting for an answer on threats to kill police officers.

"We are in an environment today that if someone makes a treat to kill a police officer, we take it seriously."

Detroit police in July submitted four cases to the Wayne County Prosecutor's office involving online threats made against officers following the killing of five Dallas police officers in July.

"I am committed to pushing this issue. It's been well over a month," Craig said of the cases. " ... I am not going to back off of this.

"The message must be clear: You don't get to threaten a police officer, you don't get to shoot at police officers. You do so, and know we will find you, we will get you and we will arrest you."