The U.S. military said the explosion occurred as police responded to an insurgent attack on the Baya police station .