Over the past two decades, intrusive raids and allegations of the killing of innocent civilians by Afghan and international forces helped fuel the Taliban's popularity in parts of the country where they already had a presence and a degree of support.