If they have called the householder Beelzebub, how much more those of his household. Beelzebub is the idol of Ekron, which in the book of Kings is called the idol of the fly. Beel is the same as Bel or Baal; zebub means fly. Therefore they called the prince of demons by the name of that most filthy idol, who is called fly because of the uncleanness that destroys the sweetness of the oil.
Source: Commentary on Matthew