New planet, dying star found outside Milky Way