Astronomers have discovered a rocky exoplanet that has an atmosphere and sits within the habitable zone of a solar system.