My point is that Israel had full control about exactly what Gaza was allowed to import and export (and frequently used those controls for collective punishment as well)
I don't quite see how under those circumstances, they were able to build "a more powerful army than many European countries", unless you talk about Luxembourg or the Vatican.