I have heard a noise like that when the gas valve is getting faulty and the inside pin keep moving in and out, producing the clicking noise. If the gas valve has found to be the origin, check the CH sensor. Sometimes the sensor have problem and start sending wrong temp. signals to the main pcb...