Hamas and Israel released more hostages and prisoners under terms of a fragile ceasefire that held for a fifth day Tuesday as international mediators in Qatar worked to extend the truce and the United States urged Israel to better protect Palestinian civilians in Gaza if it follows through on its promise to resume the war.