Not sure what part the solar flares played, but you can almost always count on a storm clearing just before sunset to produce sensational light effects at sunset.
If the weatherman says that storms will clear in late afternoon evening, it is your cue to grab the camera.