An attack on Iran would be catastrophic and encourage it to develop a nuclear bomb, Mohamed ElBaradei, director general of the International Atomic Energy Agency, said on Thursday.