The American military said a soldier was killed by small-arms fire in western Baghdad , another soldier died in a bombing south of the capital , and a third soldier was killed by '' enemy action '' in western Iraq .