Shemarra Montgomery (MCSO)

MONTGOMERY, Alabama -- A Montgomery County Detention Facility corrections officer is accused of having sex with inmate Desmonte Leonard who is charged with capital murder in a 2012 mass shooting in Auburn.

Chief Deputy Derrick Cunningham said Shemarra Montgomery was caught on camera in June having inappropriate contact with Leonard.

After viewing the security camera footage, the sheriff's department conducted an investigation and found evidence that Montgomery and Leonard engaged in sexual intercourse, he said.

Montgomery resigned from her post Monday, but she was arrested the next day and charged with custodial sexual misconduct. She was released from jail on $10,000 bond.

Leonard is being held in the Montgomery County Detention Facility awaiting a Sept. 22 trial.

Leonard is accused of fatally shooting DeMario Pitts, of Opelika and former Auburn University football players Ladarious Phillips and Ed Christian at the University Heights apartments on June 9, 2012.

Former AU football player Eric Mack and Roanoke natives Xavier Moss and John Q. Robertson were injured.

Leonard turned himself in to Montgomery authorities following a three-day manhunt.

Cunningham said he doesn't know for sure, but he thinks Montgomery knew Leonard before he was arrested.

"(Leonard) cooperated with us on the investigation," he said. "He assisted us as much as our investigators did."

Cunningham said Leonard will not face any disciplinary action.

Montgomery's husband, Curtis, was also charged with hindering prosecution for allegedly lying to deputies about the whereabouts of his wife. He was released from jail on $1,000 bond.

Curtis Montgomery works as a corrections officer in a state-run prison.

Updated at 4:18 p.m.