If the ball hit him it's a dead ball. If he swung at it he's out. After it hit him it doesn't matter if it gets by the catcher.