Rising tensions in the Middle East are making investors more cautious.