It's hard to know what this could have been. Lightning, of course, does not always strike the ground, but can jump from cloud to cloud, or even places within a cloud that have different electrostatic potentials. Clouds can build up quite a charge due, presumably, to the friction between raindrops and dust particles within the clouds.