Nasa solves a 2,000-year-old supernova mystery