Jailer accused of pepper-spraying inmate takes plea deal