Entanglement localization by a single defect in a spin chain