Kurdish forces said fighters were evacuated with help from international mediators to halt attacks and protect civilians in Aleppo.