With Militants Gaining New Footholds, Afghanistan No Longer Central to Counterterrorism Fight