An Iranian official who was key to the country's 2015 nuclear deal with world powers has reportedly tendered his resignation from the government of reformist President Masoud Pezeshkian.