Man accused of shooting off-duty officer pleads not guilty