A masked federal immigration officer dragged a man in a red apron out of a grocery store in rural California on Sunday morning, then pepper-sprayed others who were holding the man's legs to try to keep him inside, in a video that has circulated widely online.

At around 8 a.m. on Sunday, the man — identified by his family as Omar Lopez — was working at a food stand selling roasted chickens outside the Fiesta Market in Lamont, a town about two hours north of Los Angeles, when he ran into the market in a panic with an immigration officer chasing him, a witness said.

The officer grabbed Lopez in the back of the store near the vegetable section and pushed him to the ground as several workers, including Asucena Vera, grabbed his legs. "He got scared," Vera said. "And we didn't even know what to do anymore, because everyone there was screaming, begging us to help them."

The video shows the officer holding Lopez's arm in his left hand and what appears to be pepper spray in his right. He says, "Let go, let go," then sprays the chemical agent at the people inside the store. Vera said she was sprayed in the ear. Lopez clung to the door as the officer called for backup from other masked agents, who pulled him up and pressed him against a parked car.

U.S. Immigration and Customs Enforcement said the operation was intended to "arrest four Mexican illegal aliens who entered the U.S. illegally at an unknown time," and said several people "attempted to obstruct" officers. The agency did not answer whether any of the people targeted or detained have criminal records or what chemical agent was sprayed. The Los Angeles Times reported that three men were arrested and are being held at the California City Detention Facility.

Mexico's Foreign Affairs Ministry said late Monday that it would express concern over the incident through diplomatic channels, and that the man seen in the video has agreed to return to Mexico voluntarily and that five Mexican citizens were arrested in the operation. Lopez's brother, Silvestre Lopez, said the family has hired an attorney while his brother is in ICE detention.

Salvador Solorio-Ruiz, the mayor of the nearby city of Delano, said he and seven other elected leaders in the area sent a letter to California Attorney General Rob Bonta calling for an investigation into the incident. On Monday, new signs at the Fiesta Market read "no warrant, equals no entry."