SAN DIEGO — A man was shot and killed by a San Diego police officer Tuesday night in the College Area, authorities said.

Around 6:45 p.m., the San Diego Police Department served a search warrant at an apartment complex located on the 6100 block of El Cajon Boulevard, the San Diego County Sheriff’s Department said in a news release.

Detectives attempted to contact a man who police say was a person of interest in a shooting in Clairemont earlier this month which then led to a police shooting on the Mesa College campus.

SDPD set a perimeter around the apartment building and attempted to contact the man, giving verbal commands and warnings and attempting to make phone calls into the residence, Lt. Joseph Jarjura said.

When the suspect eventually came out of the apartment, he had what appeared to be a gun in his hand, per law enforcement.

Officers told him to put the gun down, which he eventually did, but he refused to step away from the weapon and kept looking at the gun, which was near his feet, the sheriff’s department said.

Eventually, the suspect lunged for the gun, prompting one SDPD officer to shoot at the suspect multiple times, according to officials.

The suspect was hit with at least one round from the officer and went to the ground, Jarjura said. He was pronounced dead at the scene of the shooting around 7 p.m. after life-saving measures were rendered.

Officials said no officers or civilians were injured during the incident.

Residents, who were seen gathered nearby at the Campus Plaza Shopping Center, told FOX 5 they believe the shooting involved a man on the third floor at the Plaza Apartments. Police did not allow residents to re-enter the apartments.

“As I’m checking on my mom, I hear them talking to somebody about get on the ground, get on the ground, get on the ground, he’s not complying,” one resident told FOX 5. “Basically then I go downstairs and go out the emergency exit to my truck which is parked in the back parking lot. As I did that, that’s when I heard multiple, multiple rounds.”

El Cajon Boulevard was blocked off at 67th and College Avenue for an investigation.

The circumstances surrounding the incident are still under investigation and the sheriff’s department’s Homicide Unit will investigate the police shooting, per county protocol.

The identity of the man who was killed in the shooting has not yet been publicly released.

Anyone with information regarding the shooting was asked to contact the SDSO Homicide Unit at 858-285-6330 or 858-565-5200 for after hours calls. You can also leave an anonymous tip with Crime Stoppers at 888-580-8477.

FOX 5’s Kasia Gregorczyk and Sir Milo Loftin contributed to this story.