Amenability and Kunze-Stein property for groups acting on a tree