Self-similar expansion of a plasmoid supplied by pellet ablation