A Massachusetts jail inmate pleaded guilty to attempting to hire a fellow inmate to murder three people, officials say.