A lightning bolt spread across the sky above New South Wales during widespread thunderstorms in the state.