IAEA chief says struck deal with Iran to mitigate it cutting cooperation