Two unknown motorcyclists opened firing at teachers and students of government primary school in Mirzagan in Charsadda district of Khyber Pakhtunkhwa as they were leaving the school, police said.
Two teachers sustained bullet injuries while the attackers escaped, they said.
The injured teachers were shifted to the Lady Reading Hospital here.
Police has started an investigation and were looking for the attackers. No group has so far claimed responsibility for the attack.