Mideast violence could impact war on terror