Shortly thereafter, while dancing he was injured, thus effecting his immediate entry into the world of acting.
While dancing he was injured effecting his immediate entry into the world of acting. This was shortly thereafter. This is thus.