Beijing - A knife-wielding man with a grudge killed seven middle school children and injured 12 others as they returned home in northern China on Friday, authorities said, in one of the deadliest such rampages in the country in recent years.
The 28-year-old suspect was detained and the injured children were receiving hospital treatment, the Mizhi County public security bureau in Shaanxi province said on its official social media account.
Five girls and two boys were killed, the bureau said. Another nine girls and three boys were wounded. The ages of the children were not given, but middle schoolers are usually between 12 and 15 years old in China.
The incident took place at around 18:10 local time, the department said.
A man surnamed Zhao from Zhaojiashan village in Mizhi County was arrested, the public security bureau said.
The suspect confessed that he had been "bullied" when he attended the same Number Three Middle School when he was a child, "hated" his classmates and decided to use a "dagger" to kill people on Friday, the bureau said.
A video posted by The Paper, a daily, on video-sharing website Miaopai.com shows two or three bodies lying on the ground in a narrow lane. A person is heard shouting "hurry, call the police!" Police are seen running and later frogmarching a man down the street.
AFP could not immediately verify the authenticity of the video.
Knife attacks are not uncommon in the country.
In February, a knife-wielding man with a personal grudge killed a woman and injured 12 others in a busy Beijing shopping mall -- a rare act of violence in the heavily policed capital.
In May last year, a man believed to be suffering mental health problems killed two people and injured 18 in southwest Guizhou province.
In July, a man armed with a kitchen knife killed two people and wounded nine others in a supermarket in the southern city of Shenzhen.
Attacks have also targeted schoolchildren in the past.
In January 2017, a man armed with a kitchen knife stabbed and wounded 11 children at a kindergarten in China's southern Guangxi Zhuang autonomous region.
In February 2016, a knife-wielding assailant wounded 10 children in Haikou, in the southern island province of Hainan, before committing suicide.
The man had entered the school in the afternoon, claiming that he was there to pick up his son.
In 2014, state media reported that a man stabbed three children and a teacher to death and wounded several others in a rampage at a primary school that refused to enrol his daughter.
That followed a March 2013 incident in which a man killed two relatives and then slashed 11 people, including six children, outside a school in China's commercial hub Shanghai.
The events have forced authorities to increase security around schools and led to calls for more research into the root causes of such acts.
Violent crime has been on the rise in China in recent decades as the nation's economy has boomed and the gap between rich and poor has widened rapidly.
Studies have also described a rise in the prevalence of mental disorders, some of them linked to stress as the pace of life becomes faster and support systems wither.
In June last year, a bomb blast that killed eight people and injured dozens outside a kindergarten in Fengxian, eastern China, was blamed on a 22-year-old introvert with health problems who had written the words "death" and "destroy" on the walls of his apartment. Material to make a homemade explosive device was found in the home.