Erin Silver of the Washington Post has written a good article on the subject of fidget gadgets in the classroom.
Another strategy that works for me is to change what the student is working on... If we have been working on Algebra, switch to Art.
Are fidget toys too much of a distraction? - Erin Silver, Washington Post