Phosphorous — one of the essential elements for life — has been discovered in the cosmic leftovers from a star explosion for the first time, scientists say.