SAN DIEGO – A man is in custody after a shooting and SWAT standoff Friday night that left one person dead and another with a bullet wound to his head in the Barrio Logan neighborhood.

According to San Diego police, officers responded to a report of a shooting around 7:40 p.m. in the 2100 block of Logan Avenue. They found a 36-year-old man at Border X Brewing, with a bullet wound to his head. Police say the man was hit by a bullet that passed through a wall of the restaurant. He was taken to a hospital for treatment and is expected to survive.

Authorities set up a perimeter at the scene as they searched for the gunman and other victims. During their search, officers noticed a person down and another man walking around, inside of a second-story apartment in the 900 block of Sampson Street, said police.

The man walking around the apartment spoke to police officers through the window but refused to cooperate, said SDPD. At one point, he was seen with a firearm.

While officers were negotiating with the man, they heard at least one gunshot from inside the apartment, according to San Diego police Lt. Jud Campbell.

SWAT and the Emergency Negotiation Team responded prompting a standoff, which ended after several hours, around 11 p.m. with a suspect in custody, police said. The suspect is identified as 45-year-old Ramiro Cervantes.

After taking Cervantes into custody, officers entered the apartment to check on the person down. That person was pronounced dead at the scene. The victim’s name has not been released but is described to be a 33-year-old male.

According to preliminary reports, Cervantes is the victim’s uncle and the two men lived together at the apartment. Cervantes has been booked into jail for murder and an outstanding felony warrant.