US to punish military involved in attack on hospital in Afghanistan