Device Selection for the Coexistence of URLLC and Distributed Learning Services