Transition to an insulating phase induced by attractive interactions in the disordered three-dimensional Hubbard model