A man was fatally shot in Northeast Washington Friday morning after stabbing a police officer who was responding to domestic dispute between the suspect and his grandfather, police said.

According to police, officers were responding to a home in the 3500 block of 17th Street NE, where a violent fight had reportedly broken out between the grandfather and grandson.

D.C. Police Chief Cathy L. Lanier said that the officer was ambushed from behind moments after he stepped out of his squad car and was walking toward the house.

“The officer never saw him,” Lanier said a news conference on Friday. ”He stabbed the officer at least twice before the officer turned and confronted the suspect. Apparently there were some defensive wounds. There were several cuts to the officer’s hands during the attack.”

Police said the officer then shot the suspect, killing him at the scene.

Officials said the officer was stabbed multiple times and suffered injuries to the back of his head and neck. He was taken to a hospital and treated for injuries that are serious but not life-threatening, police said.

Lanier said the officer could be released from the hospital later on Friday.

The grandfather was also taken to the hospital with unspecified injuries, police said.

Police have not released the suspect’s identity or the name of the officer who fired his weapon.

The incident remains under investigation.

This post has been updated