The former officer also had a series of conversations with the inmate via a contraband cell phone, authorities say.