HONG KONG — An official who oversaw a demolition project in southern China has stepped down, and two others have been dismissed, state news media reported on Monday, after a video showing law enforcement officers beating women and at least one child circulated on social media, prompting widespread criticism.

Seven officers who were filmed kicking and hitting residents of the village of Qionghua in Haikou, a city on the southern island province of Hainan, were also detained over the weekend, the Haikou government said.

Workers had been trying to remove people from houses that scheduled for demolition. The local government said the houses had been built illegally.