The head of the International Atomic Energy Agency expects a deal with Iran on its controversial nuclear program after emerging from talks in Tehran.