Iran's envoy to the International Atomic Energy Agency (IAEA) Reza Najafi has filed a complaint with IAEA chief Yukiya Amano accusing the U.S. of violating the terms of the nuclear agreement between Iran and six world powers.

Tehran's complaint against the U.S. came after White House Press Secretary Josh Earnest made "irresponsible" remarks about the possible use of military force against Iran during a press briefing on July 17, according to Iranian Student news agency (ISNA). Reza's letter to the IAEA chief calls Earnest's remarks a material breach of the commitments just undertaken.

"Such statements is violation of commitments of the governments on not threatening or using force according to the UN charter and at a time when JCPOA has been recently finalized in a successful manner such remarks can seriously overshadow the fundamental principles needed for implementation of JCPOA which will kick off soon," Najafi said in the complaint, the ISNA reported.

Earnest said during the July 17 briefing that the option of "military force would remain on the table as the U.S. gathers significantly more detail about Iran's nuclear program over the years," according to The Washington Times.

"The military option would remain on the table, but the fact is, that military option would be enhanced because we'd been spending the intervening number of years gathering significantly more detail about Iran's nuclear program," he added, according to Sputnik International.

Iranian President Hassan Rouhani said in a televised interview on Sunday that the nuclear agreement would not lead to Iran's military secrets being revealed, adding that his country achieved its main goal in a historic deal with world powers, RadioFreeEurope/RadioLiberty reported.