Narendra Modi’s visit to Ukraine, the first by an Indian prime minister in more than three decades, is a delicate balancing act.