VIENNA (AP) — Iran's foreign minister is calling the nuclear deal reached between his country and world powers a "win-win solution" that builds a "new chapter of hope."

The accord will keep Iran from producing enough material for a nuclear weapon for at least 10 years and impose new provisions for inspections of Iranian facilities, including military sites.

Diplomats say Iran agreed to the continuation of a U.N. arms embargo on the country for up to five more years, though it could end earlier if the International Atomic Energy Agency clears Iran of any current work on nuclear weapons.

Meanwhile, Israeli Prime Minister Benjamin Netanyahu says a nuclear deal between Iran and world powers is a "bad mistake of historic proportions."

He says the accord will allow Iran "to continue to pursue its aggression and terror in the region."

Netanyahu has been at the forefront of efforts to block an agreement that would lift sanctions on Iran. Iranian officials repeatedly have threatened to destroy Israel in the past. Iran also backs militant groups that attack it.

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.