Afghanistan has accused Pakistan of targeting a drug rehabilitation hospital in the Afghan capital with an airstrike.