I don't know why this is getting down voted. I thought it was pretty widely known? See:
- https://www.timesofisrael.com/for-years-netanyahu-propped-up...
- https://en.wikipedia.org/wiki/Israeli_support_for_Hamas
I wouldn't call them an invention of Israel, but they were allowed/encouraged to flourish.