Photon statistics of second-harmonic generation in a gaseous system