Take another look at the sentence:
Swinging at the tennis ball, pain shot through Paul's elbow as the racket made contact.
Swinging at the tennis ball, a participle phrase, comes right before pain, an illogical target. Paul is the only one in the sentence who has arms to swing with!
Before you continue, review the rules for misplaced and dangling modifiers.