Afghan government losing territory to insurgency