Afghanistan has condemned Pakistani air strikes that Islamabad says targeted militant hideouts but the Taliban says killed women and children.