BEIJING — A man wielding a knife killed two students and injured two others at an elementary school in central China on Wednesday, according to the local authorities.

The attack occurred early Wednesday morning at Baijiaping Township Wanquan Elementary School in Ningyuan County, Hunan Province. A brief statement issued by Ningyuan County on its official WeChat social media account said that the two injured students had been taken to a hospital. Reached by telephone, an official surnamed Feng at the public security bureau of Ningyuan County said the injured students were in stable condition but declined to offer more details.

The statement said that the suspect, a 31-year-old man surnamed Zheng, had been taken into police custody. Officials offered no details on the motivation behind the attack. The incident is still under investigation.