Solar flare wreaks havok on Earth