Light scattering by finite nanostructures is a topic for modern photonics. The scattering can be investigated numerically by performing memory-demanding and long-running computer simulations. When the electromagnetic field inside the nanostructure is quasiperiodic the computations can be thousand times faster. In addition, when the particles in the structure and the distance between the particles is small compared to the incident wavelength, the scattered fields can be calculated even analytically. We study the scattering of light by a photonic cluster made of small particles using quasiperiodicity. The scattered field is calculated analytically and the conditions of the resonance and zero scattering are found. The validity of the obtained results is verified via comparison with the results calculated using the reliable local perturbation method.