Detection of an extrasolar planet