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