HAYWARD (CBS SF) — Officers in Hayward shot and killed a person of interest in a homicide Wednesday in a residential neighborhood, according to police.

The incident happened near the intersection of Kelly and Wildwood streets just east of B Street at around 2:27 p.m. Officers were conducting a traffic stop when the shooting happened, Hayward police said.

A man in his 20s was shot dead. Police said they were still investigating the circumstances that led up to the shooting.

Video from Chopper 5 showed a white sedan with its passenger-side windows shattered and surrounded by patrol vehicles.

A passerby described hearing the gunfire. “I had heard twelve shots, and it was like eight shots and then quickly four more,” said Nicholas Gary. “As far as what [police] told me, they said that there was someone in pursuit and that a car was rammed. And then shots were fired, but that’s kind of vague and they wouldn’t really tell me anything after that.”

Hayward Police Chief Toney Chaplin said at a press conference the subject was a person of interest in another homicide from earlier this month.

“The suspect was being sought in the shooting death of a homeless man on May 1st of this year,” said Chaplin. “During the contact officers discharged their service weapons … at this point we are investigating to determine what led to that outcome.”

Chaplin said the shooting death of the homeless man happened a tent encampment at Industrial Parkway and Pacific Street.

The identity of the suspect and the officers involved in the shooting would not be revealed immediately as the investigation was still ongoing, Chaplin said.

In addition to an internal investigation, Chaplin said the Alameda County District Attorney’s Office would open an investigation into the shooting.