The U.S. military says violence in Iraq has killed three American soldiers near the southern port city of Basra .