Complex sentence: Nevertheless, the Samanid general Hamuya ibn Ali managed to lure Ahmad out of Merv, and defeated him in a battle at Marw al-Rudh; he was captured and imprisoned in Bukhara, where he remained until his death in 920.
Split into simpler sentences: Nevertheless, the Samanid general Hamuya ibn Ali managed to lure Ahmad out of Merv, and defeated him in a battle at Marw al-Rudh. Ahmad was captured during the battle and imprisoned in Bukhara, where he remained until his death in 920.