Behind the scenes, both Israel and Hamas want violence to end