Outgoing Israeli army chief warns of local violence