Astronomers have discovered a planet around one of the closest stars to our Sun.