When Does Terrorism Work?