It was murder by Texas law which only requires intended to kill
Murder requires more than simple intent. If you’re in my house illegally, coming at me with a weapon and I kill you, is that murder? Is legally executing someone murder?
You need to read the other Texas statutes. There is more than one that is applicable.