Iran threatens to quit nuclear deal