Bush warns Syria and Iran over terror