Spin squeezing by one-photon-two-atom excitation processes in atomic ensembles