A man with a knife has killed three children and injured several in a primary school in China, the first day of a new school term after the summer holiday, state media said this morning.

The suspect was a parent of a student.

He attacked the children because the school did not let his daughter register for the new term because she had not finished summer homework, state broadcaster CCTV reported.

The man entered the school, in Shiyan city of Hubei province, saying he had to register his daughter, CCTV said, citing the initial police investigation.

After the attack, the man took his own life, state media said.

A teacher and five other children were injured.

Violent crime is rare in China compared with many other countries, but there have been a series of attacks on schools and children in recent years.

In May, a knife-wielding man stabbed and injured eight students in a primary school in another city in Hubei.

In December 2012, a man barged into a village primary school in the central province of Henan and stabbed and injured 23 children.