I am confident that they didn't know. If you are trying to market your surveillance and oppression technology that you perfected on the Palestinians since 1967, this was evidence that it doesn't work. Don't take this win away from Hamas'.
The problem though for the rest of the Palestinians, is that they will pay a dear price even if they don't agree with what Hamas did. Collective punishment is illegal but then so are the settlements in the West Bank