A day-old humanitarian truce that had given residents of the Gaza Strip a respite from nearly three weeks of fighting collapsed early Sunday after Hamas militants refused to extend it and fired a barrage of rockets into Israel. By early afternoon, however, Hamas, had reversed its position and said it would resume the truce for 24 hours, until 2 p.m.