This could mean ‘the official in charge of the jail.’
The jailer was so afraid, thinking that the prisoners had escaped, that he intended to kill himself rather than be punished for his failure to guard them.