Lithium pollution of a white dwarf records the accretion of an extrasolar planetesimal