To combat ISIS-K, the West may have to ally with the Taliban