Astronomers have spotted a highly magnetised white dwarf creating a rare, colourful shockwave as it moves through space.