A regional Islamic State affiliate is a major rival to the Taliban in Afghanistan. The U.S. says ISIS-K has long planned attacks on its personnel in the country.