Ex-deputy charged in detainee death pleads not guilty