Energetics of a Solar Flare and a Coronal Mass Ejection Generated by a Hot Channel Eruption