A two-year investigation identifies one of the very few Americans in the Islamic State’s upper ranks—and sheds light on the dynamics of radicalization.