Ayatollah Mahmoud Hashemi Shahroudi, a senior Iranian cleric and a former chief justice, died in Tehran on Monday after a long illness, state media reported.