How do I fix this?

I tried relighting the pilot light and turning on the heat, but it did this and turned off.