Sun releases most powerful flare in nearly a decade