On a manhunt in 1877 , a hard-bitten Texas ranger named John B. Armstrong captured the notorious outlaw John Wesley Hardin after what the officer later described in a telegram back home as a '' lively shooting '' aboard a train in Florida .