NEW DELHI—The United States fought for 20 years in Afghanistan after 9/11 but by not attacking the roots of terrorism that operated from Pakistani soil, had to pay heavily for its policies, said Rajiv Dogra, a former Indian diplomat and the author of “Durand’s Curse,” a best-selling and critically acclaimed book about the division of…