U.S. works with foreign armies to counter IEDs