The problem is still and always the occupation. If Palestinians had real Country; if Israel had internationally recognized borders, then any attacks from Palestinian side would be simply war. And Israel would be wholly in the right. And certainly since Saudi/Arab league acceptance of Israel, and now Abbas publicly giving up any retirn, the onus is entirely on Israel regarding the occupation. Until then, attacks by Hamas, even at ciivilians or random with inaccurate rockets are essentially undertsnadable.
Islamist militants attack African Union base in southern Somalia (Reuters)
from the article: For Israel’s PR war on Gaza, it may be all downhill from here