BANGKOK  Thai and Cambodian soldiers exchanged rocket and rifle fire for about an hour on Wednesday in a confrontation at their border over a disputed 900-year-old mountaintop temple, according to reports from the area. At least two Cambodian soldiers were killed, the Cambodian foreign minister said.

Several hundred soldiers from both sides have faced each other at the border since July, when Unesco, the United Nations agency, approved Cambodia’s request to have the temple named a World Heritage Site.

Foreign Minister Hor Namhong of Cambodia said two Cambodian soldiers had also been wounded. A spokesman for the Thai Foreign Ministry said seven Thai paramilitary soldiers were wounded. Ten Thai soldiers surrendered to the Cambodians, according to news reports in the capital, Phnom Penh.

The two nations have made claims for decades over the temple, Preah Vihear, which stands at the lip of an escarpment on the border looking out over the mountains of northern Cambodia.