I would move the snake to a different room. If the tank has a screen top I’d clean everything in it and consider wiping your snake down too. General rule of thumb is that pesticides and other chemicals can be toxic to small animals and I’ve heard of people picking up and using Raid specifically against snakes, so it must have some toxicity to them.
Im not sure how large your living room is or how much you sprayed but my worry is that the chemicals will diffuse through the air and get on him and in his water dish with him ingesting the chemical directly.