Magnetic-field-induced spin-reorientational transition in TbMn6Sn6