Damage is assigned all at once. If there are no enemy ships in the sector, damage can be assigned to an extractor. If you roll enough hits to destroy all enemy ships present and there are still hits left to be assigned, that excess damage can be assigned to an extractor.