SAN JOSE (CBS SF) — San Jose police are searching an apartment complex Friday night for a gunman who shot a man while he was pumping gas Friday morning before carjacking a different person an hour later, a police spokesman said.

Officers are conducting a yard-to-yard search near Mabury and North King roads after police spotted a man resembling the suspect in the area.

READ MORE: Mistrial In Manslaughter Case Against Danville Deputy Andrew Hall Over Laudemer Arboleda Killing; Guilty Verdict For Gun Assault

The man did something that officers believed to be a threat and officers fired shots at the man, who then fled into an apartment complex, police Sgt. Jason Dwyer said.

It was not immediately known if the suspect returned fire.

Dwyer said police have issued a shelter-in-place warning for the apartment complex as they conduct the search.

The carjacking occurred around noon Friday at The Plant shopping center at Monterey Road and Curtner Avenue, police Sgt. Jason Dwyer said.

KCBS’ Mark Seelig Reports:

READ MORE: Lake Tahoe Boat Inspectors Find Record Number Of Vessels With Invasive Mussels

Dwyer said the suspect drove to the shopping center in a stolen vehicle, attacked a second victim and took his car, which was described as a white early-90s Toyota Camry.

The carjacking victim was unaccounted for as of 7:30 p.m., Dwyer said. He said the suspect might have taken the victim with him.

The shopping center is about a mile away from the Chevron station on Lincoln Avenue where, around 10 a.m., the suspect walked up to a different man while he was pumping gas in his car, produced a handgun and fired at least one round, striking the man.

The victim, who appears to be in his 30s, was transported to Santa Clara Valley Medical Center where, as of 2:30 p.m. he was still being treated, Dwyer said. He is expected to survive.

The suspect fled afterward in a stolen vehicle that police later recovered, Dwyer said.

The motive for the shooting is under investigation, according to Dwyer, who said it might have been during a robbery.

MORE NEWS: UPDATE: Pleasant Hill In-N-Out Burger Shut Down for Repeatedly Defying COVID Health Order

(Copyright 2011 by CBS San Francisco. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)