Scientists have, for the first time, detected the formation of a heavy element in a neutron star merger.