That is the result of firing a round with a barrel obstruction, squib or other debris in the barrel. I've seen this in older 22lr barrels from lead build-up.

Personally, I would chuck the barrel.