A black attorney says he was detained in court because a deputy thought he was a suspect just pretending to be a lawyer