Scientists discover a scorched planet with a comet-like tail