An extrasolar planet that transits the disk of its parent star