The gas control valve needs to be turned off. The pilot light will go out if the gas supply is cut off. There is a mechanical block to prevent turning the valve all the way to the Off position to avoid accidentally turning off the pilot light.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.