Afghanistan hospital attack a ‘war crime’, rights groups say