The operation targeted a decades-long insurgency by Islamic militants in the north-east and attacks by various armed groups in the north-west.