Coexistence of Ising and XY Spin Systems on a Single Tb Atom in TbCoGa5