Israel and Gaza militants agree to cease-fire after weekend of violence