The boys were allegedly killed by the husband of school's deputy principal in the dormitory of the private school in Yulin in Guangxi Zhuang region on Wednesday morning, state-run Xinhua news agency said today.
The accused allegedly hit the primary school pupils and critically injured them. The duo later died in a hospital.
The accused surnamed as Liu has been arrested, police said adding the investigating is still on.
The boys were in the 5th grade, which normally caters for children who are aged between 10-12 years.
On December 23, some pupils were also injured in a knife attack at Chenpeng village primary school in Guangshan county.