Psalm 78:49-51:
He cast upon them [Egypt] the fierceness of his anger, wrath, and indignation, and trouble, by sending evil angels among them.
He made a way for his anger; he spared not their soul from death, but gave their life over to the pestilence;
And smote all the firstborn in Egypt; the chief of their strength in the tabernacles of Ham:
Notes on Psalm 78:49-51:
I included this verse because it offers insight into how “the Lord” smote Egypt. There are many passages about “the Lord” smiting people, and this passage makes it clear that “evil angels” (not demons) did the actual smiting in at least some cases. The idea that angels who are “on God’s team” could smite people with illness and/or death when they have made themselves His people’s enemies is known in other Scriptures. The angel OF THE LORD, not of the devil, smote Herod in the New Testament (Acts 12:21-23).
The death of the firstborn is attributed to “he that destroyed the firstborn” in Hebrews 11:28.
See also: