In the Particle System module (which will have the same name as the GameObject, eg, “Explosion”), set both the Duration of the system and the Start Lifetime of the particles to two seconds. You can also use the Size Over Lifetime module to create the effect of the flames using up their fuel.