Selena Williams recovers from early shock to win on comeback