Optical and ultraviolet observations of a strong flare in the young, single K2 dwarf LQ Hya