IAEA chief says will visit Iran to prevent 'catastrophic confrontation'