A 331 Model for Lepton Flavor Universality Violation in B Decays