SANTO DOMINGO, Dominican Republic (AP) — A court in the Dominican Republic has upheld a 30-year-prison sentence for a man convicted of killing a Japanese diplomat who was having an affair with his wife.

Bolivian immigrant Luis Antonio Baldelomar Tirina had been convicted and received the same sentence last year in the death of Tadaomi Nakai. He was sentenced again Friday after his previous sentence was dismissed because of a legal technicality.

Nakai had worked in the Dominican Republic for Japan's agency for international development.

Prosecutors said Baldelomar had previously lived in Japan and knew Nakai there. Authorities said the Bolivian agreed initially to let his wife have sex with the diplomat in exchange for help for his family. He stabbed Nakai with a kitchen knife in the diplomat's apartment in Santo Domingo in March 2010.