Internal structure of a cold dark molecular cloud inferred from the extinction of background starlight