US President Barack Obama told Israeli television that the emerging deal between Iran and world powers is the only way to prevent Tehran from obtaining nuclear weapons, and that “a military solution will not fix it.”

In an excerpt aired Monday on Channel 2 of an interview with veteran journalist Ilana Dayan, Obama said that military action against Iran would not deter its nuclear ambitions and that he could prove that a “verifiable” agreement with Iran was the best way forward.

“I can, I think, demonstrate, not based on any hope but on facts and evidence and analysis, that the best way to prevent Iran from having a nuclear weapon is a verifiable, tough agreement,” he said.

“A military solution will not fix it. Even if the United States participates, it would temporarily slow down an Iranian nuclear program but it will not eliminate it,” Obama added.

Prime Minister Benjamin Netanyahu on Tuesday rejected Obama’s comments, warning that the emerging deal would “pave the way” for Iran to attain a nuclear arsenal. He said the deal would also see Iran’s economy boosted and thus enable it to engage in further terrorist activity.

Touching on the deeply uneasy relationship between Obama and Netanyahu on the issue, Dayan asked the president about the possibility of Israel striking Iran without informing the US in advance.

“I won’t speculate on that,” he said. “What I can say is, to the Israeli people: I understand your concerns and I understand your fears.”

Obama has led the diplomatic initiative to try to end a 12-year international standoff between Tehran and the West, and put a nuclear bomb beyond Iran’s reach.

Netanyahu has long decried the emerging deal as dangerous, saying it will “pave the way” to an Iranian bomb, and has repeatedly warned that the easing of sanctions would enable the Iranian government to continue sponsoring terrorism and fomenting unrest across the region.

On Sunday, Netanyahu told German Foreign Minister Frank-Walter Steinmeier that Iran is “the greatest threat to Israel’s security, to the stability of the region and to the peace of the world.”

Obama’s interview came less than a month before the June 30 deadline for a finalized deal between Iran and the six world powers led by the US. The emerging agreement aims to curb Iran’s uranium enrichment and put in place a stricter inspections regime, in exchange for an easing of punishing economic sanctions.

The full interview with the US president is scheduled to air during Channel 2’s “Uvda” investigative news program on Tuesday evening.