Every keeper of a prison, sheriff, deputy sheriff, or jailer, or person employed as a guard, who fraudulently contrives, procures, aids, connives at, or voluntarily permits the escape of any prisoner in custody, is punishable by imprisonment pursuant to subdivision (h) of Section 1170, and fine not exceeding ten thousand dollars ($10,000).