Researchers have confirmed the first-ever detection of an atmosphere surrounding a rocky planet outside our solar system.