The Taliban has long fought the Islamic State affiliate, but they are established allies of Al Qaeda and have limited ability to control the borders of Afghanistan.