Cosmological Solutions of a Nonlocal Model with a Perfect Fluid