Hi. If you are going to directly control the coil with the triac you should place a snubber net to protect it from a strong inductive load such as the coil. This is nothing more than a resistor and a series capacitor (1K and 10 nF x 400V) placed between A1 and A2 of the triac. I leave you a link to see how to do it. regards
http://www.forosdeelectronica.com/f23/triac-optoacoplado-lamparas-led-126031/