Police in San Diego have arrested two suspects in a shooting that left one officer dead and his partner seriously wounded. The first suspected gunman was taken into custody about an hour after the shooting, which took place late on Thursday evening. Described as a Hispanic male adult, he was suffering from a gunshot wound and put under guard while receiving treatment in hospital.

Shortly before 6am on Friday, dozens of armed officers descended on a home in the California city’s Shelltown neighbourhood, where the believed they had pinned down a second suspect and called on him to come out.

Nearby residents told news station Fox 5 that they had heard a succession of bangs and smelled what seemed to be tear gas until police finally entered the house at around 1pm and decided no one was inside. The male suspect was later taken into custody several streets away, possibly after slipping through the law enforcement perimeter during the siege, police said.

Police chief Shelley Zimmerman said the two officers had stopped a car shortly before 11pm local time (7am BST, Friday) when they called for emergency assistance.

Back-up arrived minutes later to find both officers shot. One was driven to hospital by a colleague but doctors were unable to save his life and he later died of his injuries. The second officer underwent emergency surgery.

On Friday morning police named the dead officer as Jonathan DeGuzman, who was married with two young children. He was the first police victim of a shooting in San Diego since 2011. His partner, Wade Irwin, was expected to survive. Both men were part of the San Diego department's elite gang unit, which was also tasked with investigating the shooting.

Ms Zimmerman said she could not speculate on whether the shooting was a deliberate ambush or attack, saying the investigation was in its early stages.

Police officers killed by sniper at protests in Dallas Show all 20 1 /20 Police officers killed by sniper at protests in Dallas Police officers killed by sniper at protests in Dallas A Dallas Area Rapid Transit police officer receives comfort at the Baylor University Hospital emergency room entrance in Dallas Dallas Morning News/AP Police officers killed by sniper at protests in Dallas Emergency services help an unknown patient on a stretcher as law enforcement officials stand nearby at the emergency receiving area of Baylor University Medical Center AP Police officers killed by sniper at protests in Dallas Dallas Police shield bystanders after shots were fired, during a protest over two recent fatal police shootings of black men AP Police officers killed by sniper at protests in Dallas Bystanders run for cover after shots fired at a Black Live Matter rally in downtown Dallas AP Police officers killed by sniper at protests in Dallas Police check a car after snipers opened fire on police officers in Dallas AP Police officers killed by sniper at protests in Dallas A man raises his hands as he walks near a law enforcement officer, following the shootings of several police officers in downtown Dallas AP Police officers killed by sniper at protests in Dallas A Dallas police officer steps out of a vehicle as he arrives in front of Baylor University Medical Center AP Police officers killed by sniper at protests in Dallas Dallas police officers face protesters on the corner of Ross Ave. and Griffin street after police officers were shot during a peaceful protest in Dallas EPA Police officers killed by sniper at protests in Dallas A Dallas police officer covers his face as he stands with others outside the emergency room at Baylor University Medical Center AP Police officers killed by sniper at protests in Dallas Law enforcement officials escort a couple in through the emergency room entrance at Baylor University Medical Center AP Police officers killed by sniper at protests in Dallas Dallas Police respond after shots were fired at a Black Lives Matter rally in downtown Dallas AP Police officers killed by sniper at protests in Dallas Dallas Police respond after shots were fired at a Black Lives Matter rally in downtown Dallas AP Police officers killed by sniper at protests in Dallas Police cars sit on Main Street in Dallas following the sniper shooting during a protest AFP/Getty Images Police officers killed by sniper at protests in Dallas A Police officer stands guard at a barricade following the sniper shooting in Dallas AFP/Getty Images Police officers killed by sniper at protests in Dallas Police stand near a barricade following the sniper shooting in Dallas AFP/Getty Images Police officers killed by sniper at protests in Dallas Dallas police check a car after detaining a driver after a shooting in downtown Dallas AP Police officers killed by sniper at protests in Dallas Dallas police order people away from the area after several police were shot in downtown Dallas AP Police officers killed by sniper at protests in Dallas Dallas police move to detains a driver after several police officers were shot in downtown Dallas AP Police officers killed by sniper at protests in Dallas Dallas police detain a driver after several police officers were shot in downtown Dallas AP Police officers killed by sniper at protests in Dallas Dallas Police respond after shots were fired at a Black Lives Matter rally in downtown Dallas Dallas Morning News/AP

Eight police officers were murdered in two separate attacks in Dallas and Baton Rouge earlier this month, although the majority of police shootings in the US occur during gun battles with armed suspects.

Tensions remain high in some communities following police killings of several unarmed men.