Police trade shots with robbers in SF home invasion

A home-invasion robbery in San Francisco led to gunfire Sunday night between assailants attempting to make a getaway and police, officials said.

The incident unfolded around 11 p.m. at a home in the 2100 block of Quesada Avenue near Rankin Street in the Bayview neighborhood, police said.

Officers received a report of a robbery in progress and quickly set up a perimeter around a house they suspected was targeted. As they moved in to search the home, they saw several people fleeing out a back door, officials said.

One fired an errant shot at a uniformed officer, and the officer shot back as those fleeing jumped fences and ran through neighboring backyards, officials said. Apparently, no one was hit by the gunfire.

Robbers fleeing a home invasion in the Bayview neighborhood of San Francisco Sunday night fired at least one shot at a police officer, who fired back. One suspect was arrested in the incident in the 2100 block of Quesada Avenue. less Robbers fleeing a home invasion in the Bayview neighborhood of San Francisco Sunday night fired at least one shot at a police officer, who fired back. One suspect was arrested in the incident in the 2100 block ... more Photo: Mark Winema / Getty Images / / Photo: Mark Winema / Getty Images / / Image 1 of / 1 Caption Close Police trade shots with robbers in SF home invasion 1 / 1 Back to Gallery

Officers fanned out and issued a shelter-in-place order for neighborhood residents.

One person was taken into custody, but it was not clear if he was the one who shot at the officer. The suspect’s name was not released.

Backup officers and a K-9 unit responded, but the other assailants got away.

Police were interviewing victims of the home invasion on Monday, but did not immediately release details of the robbery, which resulted in minor injuries to one victim.

Police called off the search and lifted the shelter-in-place order at 4:45 a.m. on Monday.

Anyone with information about the incident can call police at (415) 574-4444, or text tips to TIP411.

Filipa Ioannou is a San Francisco Chronicle staff writer. Email: fioannou@sfchronicle.com Twitter: @obioannoukenobi