Peace be upon you. The actions of Yazid and his soldiers in Karbala were entirely their own, stemming from their free will and choice, just like all human actions, whether good or bad. They are accountable for these actions and will be rewarded or punished based on their intentions and choices. While human actions can be attributed to God, it is not in the sense that He is the doer of those actions, but rather that He grants humans the ability to act, whether for good or evil. It is the individual who chooses how to use that ability. This applies to our prayers, pilgrimage, fasting, and struggles, as well as to our wrongdoings like gossip, theft, or murder, God forbid. This principle also applies to the actions of the army of Umar ibn Sa'ad, may God curse them, who misused the power granted to them by God to commit heinous acts. As for why God grants humans the ability to do evil, the answer is that it is to test and trial them; without choice, there can be no true test. May you be successful in all that is good.