“It was determined that the incident had been captured on the video system within the detention center,” Waller said. “And the investigation revealed that inmate Trujillo was being moved within the facility from outdoor recreation back to his cell.”

During that process, Trujillo lunged at Martinez and stabbed him with a shank, Waller said. Trujillo was being jailed on charges of criminal sexual penetration of a minor.

Waller said Martinez and another detention officer subdued Trujillo and put him in his cell. Martinez was treated at Plains Regional Medical Center. Ortiz said he was released the same day.

Waller said the sheriff’s office is charging Trujillo with one count each of attempted first-degree murder, aggravated battery with a deadly weapon upon a peace officer and possession of a deadly weapon by a prisoner.

Trujillo’s motive and how he acquired the shank are under investigation, Waller said.

Ortiz said he is investigating the incident and coming up with a remedy.

“This never should have happened,” he said.

In recent years, the jail has seen other incidents of officers being attacked.