Man who sold pistol to hostage-taker in Texas pleads guilty