Weighing benefits and costs of countering terrorism finds that the efforts pay off, in sometimes unexpected ways.