Residents, rebels leave besieged Syrian city