Origin and extinction of chaotic oscillations in the Belousov-Zhabotinsky reaction