The US secretary of state has been shoring up a ceasefire that ended the worst fighting in years between Israel and Palestinian militants.