Chinese media reported that the man stormed in the school at mid-afternoon located in the southern Guangxi Zhuang autonomous region, claiming he was there to pick up his son.
The attacker allegedly climbed a wall to enter the facility.
Chinese police claimed to arrest the attacker and said that an investigation was underway into the matter.
The incident has 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 expanded rapidly.