Complex sentence: The Afghans captured Isfahan (Safavid capital) and Mahmud became briefly the new Persian Shah, known after that as Shah Mahmud.
Split into simpler sentences: The Afghans captured Isfahan (Safavid capital) and Mahmud briefly became the new Persian Shah. He was known after that as Shah Mahmud.