The U.S. military says a roadside bomb has killed an American soldier in eastern Afghanistan .