Iran renews pledge against nukes after controversy
"The supreme leader's fatwa banning weapons of mass destruction and nuclear weapons is still valid," he added, referring to Khamenei's religious edict.
"Our nuclear industry is a peaceful industry. The supreme leader explicitly stated (that) in his fatwa," Alavi said in a state television interview broadcast on February 8.
He stressed that "under normal circumstances, Iran has no such intention or plan".
Iranian intelligence ministers can only be appointed or dismissed with the approval of the supreme leader.
Tehran was at the time accused by the international community, especially the West and Israel, of seeking to secretly acquire the atomic bomb.
The fatwa declares the use of the atomic bomb and other weapons of mass destruction to be "haram", or forbidden by Islam, and it is regularly cited by Iranian authorities as a guarantee of Tehran's good intentions.
Former US president Donald Trump withdrew from the accord in 2018 and reimposed sanctions on Tehran, with Iran a year later gradually suspending its compliance with most key nuclear commitments in response.
The new administration of President Joe Biden has expressed willingness to return to the deal, but insisted that Iran first resume full compliance while Tehran has called for the immediate lifting of sanctions.
Tasnim news agency, considered close to Iran's ultraconservatives, has blasted Alavi over his "astonishing remarks" that could have "very serious consequences".
It said in an editorial that the leader's fatwa was not designed just to "appease" the West but showed that an atomic bomb would go against "the nature of the Islamic republic".
"These remarks are completely against national interests as they can strengthen the West's leverage in negotiations and more importantly, give credence to the America's unjust" stance against Iran, Tasnim said.