The pilot light in a gas fireplace is a small gas-fueled flame ... particularly when the fire is not burning really hot. A creosote buildup in the chimney can restrict airflow and cause smoke ...
Fire will extinguish when gas flow stops. Locate the gas valve. The valve might be inside the fireplace instead of on the wall. Locate the pilot light and burner control knobs. These could be ...