Blocking sets in finite projective spaces and in coding theory