Man accused of punching a police officer pleads not guilty to charges