Prime Minister Zoran Milanovic of Croatia said Thursday that his country would withdraw its soldiers from a United Nations peacekeeping force in the Golan Heights after reports that Croatia was selling weapons that were being funneled to antigovernment fighters in Syria.

Croatia has nearly 100 soldiers serving with the United Nations Disengagement Observer Force, which is responsible for maintaining the fragile calm between Israeli and Syrian troops at the demilitarized zone along Syria’s Golan frontier that was established after a cease-fire ended the 1973 war.

The decision to withdraw the soldiers from the area came after The New York Times reported on Monday that Saudi Arabia had underwritten a large purchase of infantry arms in Croatia.

Croatia has denied selling weapons to either Saudi Arabia or the Syrian rebels. But Mr. Milanovic said that reports of the sales had put Croatian soldiers at risk and that he was compelled to withdraw them because their safety could no longer be assured.