Well, speaking strictly from a grammatical point of view, "he saw the fish" is an independent clause in the first sentence and part of a subordinate clause in the second one:
Just then, he saw the fish.
That's when he saw the fish.
But from a narrative point of view, they serve roughly the same purpose. They both introduce an event that is key to the plot of the story, occurring at a very specific moment in time.