High-energy gamma rays and neutrinos from nearby radio galaxies