On insurgency and terrorism