A dog attacking a man wearing protective gear.
The man protected himself.
Answer: The man protected himself by wearing a protective gear.
Man wearing protective gear is a paraphrase of man protected himself.
The man protected himself because the dog was attacking the man.