The outgoing chief of Israel's main domestic security Shin Beth agency has warned that a third intifada or uprising is in the offing and that violence on a large scale could break out in months.