Question: What dynasty was founded by one of the prominent rulers of Afghanistan during the First Anglo-Afghan War, who had a  dispute with former emir Shah Shujah hom they installed upon conquering Kabul in August 1839?
Sentence (from "First Anglo-Afghan War"): The main British Indian and Sikh force occupying Kabul, having endured harsh winters as well, was almost completely annihilated while retreating in January 1842.
Relevant evidence: No