It was the first time the Russian leader had visited the Kuril islands, according to state media.