An official in Iranian President ​Masoud Pezeshkian's office says the country's oil minister has announced his resignation.