That's a first time I've seen a tern doing that too. ; I wonder if maybe he was just about to execute a flip maneuver or turnaround, and you happened to catch it exactly as it was about to begin the movement - maybe the head goes around first like how a cat does when they're falling upside down?
Very cool, either way.