Astronomers have detected a mysterious cosmic explosion that may represent an entirely new type of stellar event.