The Israeli military said that it fired near a diplomatic delegation which it said deviated from an approved route in the occupied West Bank on Wednesday.
Diplomatic sources said European diplomats were part of the delegation to the West Bank city of Jenin.
The military said "the delegation deviated from the approved route and entered an area where they were not authorized to be" and that soldiers fired "warning shots to distance them away."
No injuries or damage were reported, the military said.
The EU's foreign policy chief, Kaja Kallas, said she had heard about the incident which happened on a visit by diplomats organized by the Palestinian Authority.
"We definitely call on Israel to investigate this incident and also held these accountable who are responsible for this and any threats on diplomats' lives," she said.
The Spanish Foreign Ministry said a Spaniard was among the group of diplomats, who was unhurt.
"We are in contact with other affected countries to jointly coordinate a response to what happened, which we strongly condemn," it said in a statement.
Italian Foreign Minister Antonio Tajani said on X that Israel's ambassador to Rome would be summoned to explain.
Footage on Israeli television showed individuals running to vehicles with diplomatic license plates as shots were heard in the distance.
The Palestinian Authority's Foreign Ministry said "the delegation was undertaking an official mission to observe and assess the humanitarian situation and document the ongoing violations perpetrated by" Israel. The ministry called the Israeli military's actions a violation of international law.
The Israeli military has killed dozens of Palestinians and destroyed many homes in the West Bank since it launched an operation in January in the city of Jenin to root out gunmen.
Germany's foreign ministry condemned what it called "unprovoked firing" on Wednesday by the Israeli army.
The delegation included a German diplomat and a driver from the representative office in Ramallah, the ministry said in a statement.
The delegation was officially registered and was conducting diplomatic activities in coordination with both the Palestinian Authority and the Israeli Army, the statement said.
"The Israeli government must immediately clarify the circumstances and respect the inviolability of diplomats," it said.
Türkiye's foreign ministry condemned "in the strongest terms" the firing of gunshots on diplomats, including from Türkiye, adding Ankara was calling for an immediate investigation and accountability.
"This attack, which endangered the lives of diplomats, is yet another demonstration of Israel's systematic disregard for international law and human rights," the ministry said in a statement, adding a diplomat from its consulate in Jerusalem was part of the group.
"The targeting of diplomats constitutes a grave threat not only to individual safety but also to the mutual respect and trust that form the foundation of inter-state relations."