Two gunmen on a motorbike have killed two school girls and wounded six others as they left their school south of the Afghan capital, Kabul, officials say.
The attack in Logar province came at about midday as pupils were leaving.
Officials say the gunmen waited for the girls before spraying bullets into the all-girl school and escaping. It is not clear who carried out the attack.
Correspondents say it is thought to be the first time school girls have been targeted in this way.
Tuesday's shooting occurred at the Qalay Meadan school in Qala-e Saeed Habib area, not far from the Logar provincial capital, Pol-e Alam.
Education Minister Hanif Atmar said he was shocked.
"Those who carried out this cowardly attack are the enemies of the country," he told reporters in Kabul.
The government uses the term "enemies of Afghanistan" to describe the Taleban and their al-Qaeda allies.
A large search is now underway to find the gunmen.
The Taleban reportedly denied carrying out the attack.
Afghanistan's Pajhwok news website said a man claiming to speak for the country's hard-line former rulers had condemned the murder of school children.
The spokesman "said such slayings were mostly linked to family feuds and local customs", Pajhwok reported.
The Taleban has in the past warned women and children to stay away from schools and remain at home.
They have also been accused of burning numerous schools and killing teachers.