The boy had gone to the school's toilets when the two, armed with a knife and a gun confronted him, Constable Mabel Sibanda said.
One of the men stabbed the boy in the hand. The other tried to shoot him but his firearm didn't discharge.
Both men fled and no arrests had been made.
The boy was taken to hospital.