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.

VISTA, Calif. — Law enforcement has released the name of a man shot by a deputy in Vista after he reportedly approached a stranger with a knife then armed himself with a pellet rifle.

The San Diego Sheriff’s Department says 20-year-old Omar Rojas is expected to survive the shooting in the 1500 block of Kiva Lane. Deputies started investigating around 12:30 p.m. Tuesday after a 911 caller reported a man “acting bizarrely” who had slashed his car tires behind a vacant building near 1500 North Santa Fe Avenue.

Deputies say the caller locked himself in his car and as law enforcement got to the area, Rojas ran into a nearby backyard.

“Deputies tried to deescalate the situation, but Rojas armed himself with what deputies believed to be a rifle. During the confrontation, one deputy discharged his firearm striking Rojas,” the sheriff’s department said in a Wednesday news release.

Rojas was taken to the hospital with injuries that weren’t considered life-threatening, according to the release.

The sheriff’s department says deputies found a pellet rifle and two knives near where Rojas was shot. The pellet gun came from a nearby resident’s backyard. They weren’t home at the time of the shooting, deputies said.

Rojas is in police custody at the hospital. He was arrested on suspicion of assault with a deadly weapon upon a peace officer and felony vandalism, the sheriff’s department said.

The incident in Vista was one of two officer-involved shootings in San Diego County on Tuesday. A San Diego police officer shot a motorcyclist who reportedly refused to stop in the City Heights area. Police say the fleeing man shot at officers during the chase and at one point, an officer returned fire, striking the man twice.