The police in a small inland California city are facing criticism after they opened fire on a car in a Walmart parking lot this month, killing the black man who had been driving and injuring one of his three passengers.

Video of the shooting in Barstow, recorded by a pedestrian and later posted by a racial justice activist, appears to show officers with the Barstow Police Department firing more than a dozen rounds. A lawyer for the family of the man who was killed, Diante Yarber, 26, estimated that the police had fired about 30 rounds.

The shooting, on April 5, has ignited protests in Barstow, about halfway between Los Angeles and Las Vegas, among residents seeking answers from the police, according to The Daily Press of Victorville. The video, posted on Facebook by the activist Shaun King, has been viewed more than 200,000 times.

The Yarber family’s lawyer, S. Lee Merritt, said he planned to sue the City of Barstow and its Police Department by the end of the week.