Scientists have detected the most distant supernova ever seen, exploding when the universe was less than a billion years old.