The truce comes after days of fighting as the army advanced into Kurdish-held territories in the northeast.