Iran’s supreme leader has replaced the top commander of the Islamic Revolutionary Guards Corps, state media reported Sunday, two weeks after the Trump administration designated the elite force of the Iranian military as a foreign terrorist organization.

The supreme leader, Ayatollah Ali Khamenei, did not specify why he was removing the Revolutionary Guards commander, Maj. Gen. Mohammad Ali Jafari, who had held the post since 2007.

Mr. Khamenei replaced General Jafari with a deputy commander of the Revolutionary Guards, Brig. Gen Hossein Salami, and elevated his rank to major general.

General Salami takes over a 125,000-member branch of the Iranian military that has grown into a vast military-industrial complex since it was created by founders of the Islamic revolution that overthrew the shah 40 years ago.