A ceasefire between Israel and Gaza militant groups appeared to be holding on Sunday, ending the most intensive flare-up in violence around the Palestinian enclave since a 2014 war.