The origin of lithium (Li) and its production process have long been uncertain. Li could be produced by Big Bang nucleosynthesis, interactions of energetic cosmic rays with interstellar matter, evolved low-mass stars, novae, and supernova explosions. Chemical evolution models and observed stellar Li abundances suggest that at least half the Li may have been produced in red giants, asymptotic giant branch (AGB) stars, and novae. No direct evidence, however, for the supply of Li from evolved stellar objects to the Galactic medium has hitherto been found. Here we report the detection of highly blue-shifted resonance lines of the singly ionized radioactive isotope of beryllium, (7)Be, in the near-ultraviolet spectra of the classical nova V339 Del (Nova Delphini 2013) 38 to 48 days after the explosion. (7)Be decays to form (7)Li within a short time (half-life of 53.22 days). The (7)Be was created during the nova explosion via the alpha-capture reaction (3)He(α,γ)(7)Be (ref. 5). This result supports the theoretical prediction that a significant amount of (7)Li is produced in classical nova explosions.