Type Ia supernovae arise from the thermonuclear explosion of white-dwarf stars that have cores of carbon and oxygen1,2. The uniformity of their light curves makes these supernovae powerful cosmological distance indicators3,4, but there have long been debates about exactly how their explosion is triggered and what kind of companion stars are involved2,5,6. For example, the recent detection of the early ultraviolet pulse of a peculiar, subluminous type Ia supernova has been claimed as evidence for an interaction between a red-giant or a main-sequence companion and ejecta from a white-dwarf explosion7,8. Here we report observations of a prominent but red optical flash that appears about half a day after the explosion of a type Ia supernova. This supernova shows hybrid features of different supernova subclasses, namely a light curve that is typical of normal-brightness supernovae, but with strong titanium absorption, which is commonly seen in the spectra of subluminous ones. We argue that this early flash does not occur through previously suggested mechanisms such as the companion-ejecta interaction8,9,10. Instead, our simulations show that it could occur through detonation of a thin helium shell either on a near-Chandrasekhar-mass white dwarf, or on a sub-Chandrasekhar-mass white dwarf merging with a less-massive white dwarf. Our finding provides evidence that one branch of previously proposed explosion models—the helium-ignition branch—does exist in nature, and that such a model may account for the explosions of white dwarfs in a mass range wider than previously supposed11,12,13,14.