In terms of „soft power“: they lost a lot of goodwill with politicians worldwide. No sane politician supports the killing of innocent civilians.
Hamas also successfully silenced Israelis that oppose their own government. This probably is what Hamas wants though.
Since you are using a cornered animal metaphor: how the fuck did those foreign civilians corner THIS animal? And spare me your „but Israel“ excuses - those killed tourists didn’t have to do ANYTHING with this.