Dust Depletion and Extinction in a Gamma-Ray Burst Afterglow