Extremely rapid bursts of TeV photons from the active galaxy Markarian 421