Iranian government official who was key to 2015 nuclear deal resigns under hard-liner pressure