Mr. Rouhani, who attended the celebrations in the Canary Islands.