The mayor of a small town in Texas has resigned after secretly keeping her neighbour’s Shih Tzu while pretending it had died.