The former head of GCHQ has told Sky News that the long-term consequences of Israel's military offensive in Gaza will extend to "Europe and beyond".