Isaiah 45:7 I form the light, and create darkness: I make peace, and create evil: I the LORD do all these things.
Is this fair and justifiable? Why would God create evil if He is suppose to be a loving just God?
The evil that God has created are His righteous judgements that come upon those who are not obedient to His commands. It's like that of the10 plagues in the book of Exodus as Pharaoh oppresses Israel while taken them into captivity as even though God gave him a chance to let them go he refused so God's punishment came against Egypt.
The same with many battles we read of in the OT that came against God's people as all is done in righteous judgement of God to show He is the Great I Am, Exodus 3:10-15.
So will it also be in the end of days when Christ returns in all His righteous judgement, Rev 19:11-21.