Correlation of the highest-energy cosmic rays with the positions of the nearby active galactic nuclei