Depends on how you define success I guess.
If your definition of success is anything that remotely has to do with the well being of Gazans then its quite hard to make the case the Hamas attack was a success. Quite the contrary it seems to me.
If the goal was to kill Israelis, torture and humiliate them then yes it was a tremendous success.
If the goal was to kill Israelis, torture and humiliate them then yes it was a tremendous success.