The agreement was confirmed minutes before the ceasefire was set to expire at 7 a.m. local time.