Electrostatic control of quasiparticle poisoning in a hybrid semiconductor-superconductor island