LOS ANGELES (AP) — A bloodhound helped police track down a suspect who was wanted in the shooting of a California Highway Patrol officer during a Monday traffic stop in Los Angeles, authorities said Tuesday.

The officer is hospitalized in critical but stable condition. He is expected to recover from multiple gunshot wounds he sustained in the shooting, according to Officer Ramberto Salcido, a spokesperson for the CHP’s Southern Division. The officer is a 27-year-old man who has been on the force for less than a year; his name has not been made public.

READ MORE: Sacramento Metro Fire Ramps Up Fire Resources For Fourth Of July Weekend

This undated image released by the California Highway Patrol shows Pejhmaun Iraj Khosroabadi, 33, who was in custody Tuesday, June 14, 2022, for the wounding of a California Highway Patrol officer who was shot during a traffic stop in Los Angeles, authorities said. (California Highway Patrol)

Pejhmaun Iraj Khosroabadi surrendered to police Tuesday morning in a homeless encampment in the Van Nuys area of the San Fernando Valley. It was not immediately clear whether he had an attorney who could speak on his behalf.

READ MORE: 'We're Sick Of The Number 22': Local Veterans Launch Nonprofit In Roseville To Help Other Veterans In Need

The shooting occurred shortly before 8 p.m. Monday after the officer stopped a sedan in the Studio City area. An altercation broke out and Khosroabadi allegedly pulled out a gun, fired multiple times at the officer and ran away.

Investigators do not yet know what prompted the altercation or exactly why the officer pulled over the sedan, Salcido said.

A car matching the description of the one involved in the incident was located at a Van Nuys apartment building.

MORE NEWS: 3 Homes Among Structures Destroyed By Fire In Olivehurst

A police bloodhound named Piper tracked Khosroabadi to a tent in the homeless encampment, Salcido said. Khosroabadi will be treated for unspecified injuries and booked on suspicion of attempted murder of a peace officer, he said.