Man accused of impersonating cop