The president boarded a different plane in Turkey during a Nato summit to evade an Iranian threat.