Two in jail for pepper-spraying detention officer