Influence of ferromagnetic nanoparticles on the critical current of Josephson junction