The suspect, identified as Derric Abernathy, died at the scene.
Sheriff's deputies were examining two cars parked nearby in connection with the investigation.
It's unclear what may have led to the shooting. No further details were released.
Homicide detectives, the department's internal affairs bureau and the Los Angeles County District Attorney's Office are all investigating, as required in shootings involving law enforcement officers.
The Associated Press contributed to this report.