A New York Police Department officer who was hit with a metal chair and fatally shot the attacker during a violent confrontation Friday is improving after he was placed in a medically induced coma, a police official said.

The uniformed officer was attacked Friday at about 5:40 p.m. while he and another officer were attempting to arrest a man who had an open warrant for trespassing and had been urinating inside a salon in the Brownsville section of Brooklyn, the officials said. During a struggle to arrest the suspect, another man came into the store and began fighting with the officers, according to NYPD Chief of Patrol Rodney Harrison.

A police official identified the suspect who was killed as Kwesi Ashun, 33 years old. A relative didn’t respond Sunday to a request for comment.

The NYPD hasn’t identified the police officer who was attacked. The officer is a 21-year NYPD veteran assigned to the 73rd Precinct, an NYPD spokesman said.

On Sunday, a police official said the officer had improved and was in stable condition at Brookdale University Hospital and Medical Center in Brooklyn.