Small-scale discharges observed near the top of a thunderstorm