Computer-simulation study of a three-dimensional lattice-spin model with dipolar-type interactions