The U.S. military regrets any offense it may have caused by handing out a soccer ball emblazoned with the name of Allah on it as part of a public relations exercise in Afghanistan , a spokesman said .