The Islamic State group, which controls large parts of Syria and Iraq, has worked in recent months to establish a small but growing presence in Afghanistan. Nangarhar has been a focal point for the group.