Direct observation of a nonequilibrium velocity distribution function in a system with a thermally activated chemical reaction