T.J. Smith, the Baltimore Police Department’s chief spokesman, and most consistent public face since 2015, whose local roots and empathetic outrage over city violence often endeared him to a public distrustful of the agency as a whole, has resigned, he confirmed Wednesday.