A nova outburst powered by shocks