Astronomers have captured a first-of-its-kind image of a massive dying star.