Distant 'galaxy' isn't a galaxy at all — but one of the brightest pulsars ever detected