Homogenization of a scattering problem in a perforated domain