This doesn't have any big game-breaking effects that you wouldn't get from assaulting guards or townspeople anyway, so if you find yourself in this situation just try to get taken to jail, kill everyone/get them to yield, or reload from an earlier save.