In the 2nd Chapter of Matthew it says that Satan used King Herod, who knew of this Christ-child's birth through the wise men.
The King "was exceeding wroth and sent forth, and slew all the children that were in Bethlehem, and in all the coasts thereof, from two years old and under."
Jesus wasn't killed because an angel of the Lord appeard to Joseph and warned him to take Him and his mother and flee to Egypt.
Satan failed in his attempt to stop or kill the Word, the child, Jesus, who was the Word made flesh.