Flexible Entanglement-Distribution Network with an AlGaAs chip for Secure Communications