Bernardo Caceres was at New York City’s jail complex to meet with a client when an envelope he had drew the attention of a Correction Department dog, officials said.