SAN FRANCISCO—Last month, the San Francisco Society for the Prevention of Cruelty to Animals deployed a 400-pound robot to help combat a sharp rise in car break-ins and other crime at one of its animal shelter facilities here.

On Thursday, the Knightscope K5 was benched amid complaints that it was being used to harass the neighborhood’s sizable homeless population.

The shelter’s...