A South Texas resident was arrested Monday after authorities say the 21-year-old threatened local police and was plotting an attack reminiscent of the deadly 2016 Dallas police ambush, officials said.