Two U.S. soldiers have been killed in western Iraq, the U.S. military said on Wednesday.