Mohsen Rezaei speaks to media in Tehran on Jan. 3, 2020. File Photo by Maryam Rahmanian/UPI | License Photo

Aug. 9 (UPI) -- Iran has replaced its top security official with another commander of its powerful Islamic Revolutionary Guards Corps, a spokesman for Iranian Masoud Pezeshkian said late Sunday.

Mohsen Rezaei, who had been an adviser to Supreme Leader Ayatollah Mojtaba Khamenei, will be the new secretary of the Supreme National Security Council. He replaced Mohammad Bagher Zolghadr, who resigned.

Zolghadr had been in the post since his predecessor, Ali Larijani, was killed in an Israeli air strike in March. He will serve as political adviser to Khamenei.

The shakeup came as Foreign Minister Abbas Araghchi said Iran is not talking directly with the U.S. to end the war with Tehran and open the Strait of Hurmuz, despite claims by U.S. officials that the sides are near a deal.