To succeed in Afghanistan, Obama first must grasp why the country has proven so difficult to rule.