This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

EL CAJON, Calif. — A suspect was shot by deputies and a police officer was also wounded on a street in East County late Wednesday, according to officials.

The confrontation started around 10:15 p.m. near the corner of Decker and Ballard streets in El Cajon, police said in a news release. A law enforcement team called the Regional Auto Theft Task Force had trailed a van pulling a stolen trailer to the area and tried to stop the driver, according to El Cajon Police Department.

That driver, identified by police as 31-year-old Erik Talavera, got out of the van with a knife, according to authorities. Sheriff’s deputies who had also responded to the scene yelled commands at the man but he “failed to comply,” ECPD said. Two deputies opened fire, hitting Talavera.

Authorities did not outline specifically why the deputies opened fire, beyond saying that he was armed and noncompliant.

Sheriff’s deputies and then paramedics gave Talavera “life-saving treatment” before he was rushed to a hospital, where he underwent surgery for gunshot wounds. “Talavera is currently in stable condition and is under guard at the hospital for charges stemming from the incident,” ECPD said in a news release.

At some point during the shooting, a detective with National City Police Department — who had been serving on the task force — was also shot, according to ECPD. The detective’s injuries were described as “minor” and “non-life-threatening.” They are being treated at a local hospital.

While authorities did not specifically outline how the detective was wounded, they did not mention an additional shooter beyond the two deputies. Asked directly whether the officer was accidentally shot by deputies, ECPD Lt. Randy Soulard said only that the “investigation is ongoing.”