It is more than likely that this was made in a 3D program, but... it is possible to recreate it in After Effects. Using Shatter to create a 3D object, nesting that comp inside another and using Time Displacement with a gradient ramp to move the shatter comp at different speeds.
This took 2 minutes to put together and I did it more to demonstrate two little mentioned effects. In reality, a C4D Lite torus with a Twist deformer would be a simpler option.