Transient flashes of electromagnetic radiation in the upper atmosphere