TOKYO — Japan’s conservative prime minister, Shinzo Abe, sent a message of support earlier this year to a ceremony honoring more than 1,000 Japanese who died after convictions for war crimes, a government spokesman said on Wednesday. The move could worsen frictions between Japan and its neighbors, particularly China, over bitter memories of World War II in the region. Mr. Abe wrote in the message