Israel warned US defence secretary Lloyd Austin in a call on Tuesday that a military operation was going to take place in Lebanon but gave no details, US officials said.

The same day as the call, in an attack widely blamed on Israel, thousands of pagers belonging to Hezbollah militants exploded.

The call was one of four between Mr Austin and Israeli defence minister Yoav Gallant this week as attacks have spiked between Israel and Hezbollah, fuelling worries that they could escalate into a wider regional war.

The two spoke again later on Tuesday, and the US has acknowledged being briefed following the attack. There was another call on Wednesday, and they also spoke on Sunday, said the officials, who spoke on condition of anonymity to discuss private talks.

Israeli Prime Minister Benjamin Netanyahu, left, and defence minister Yoav Gallant (Abir Sultan/Pool Photo via AP)

The officials said the US did not get advance warning of the second wave of attacks, with walkie-talkie radios targeted on Wednesday. At least 37 people were killed, including two children, and some 3,000 wounded in the two days of explosions.

The officials stressed that the US played no role in the attacks and said they were surprised by the specifics of the operations.

The attacks on electronic devices this week appeared to be the culmination of a monthslong operation by Israel to target as many Hezbollah members as possible all at once — but civilians were also hit.

Pentagon spokeswoman Sabrina Singh on Thursday acknowledged the four calls but did not provide timelines of when they happened. She said the US has not made any changes in its force posture in the region as a result of the recent surge in attacks.

During a call on Wednesday with Mr Gallant, Mr Austin spoke about regional security developments and reiterated America’s unwavering support for Israel in the face of threats from Iran, Hezbollah and other Iranian proxies in the region, Ms Singh said.

Mr Austin “emphasised the US commitment to deterring regional adversaries, de-escalating tensions across the region, and reaffirmed the priority of reaching a ceasefire deal that would bring home hostages held by Hamas,” she said.

He also pushed for a diplomatic solution that would allow civilians on both sides of Israel’s northern border with Lebanon to return to their homes, Ms Singh said.

Asked about the potential for a US military evacuation of American citizens in Lebanon, Ms Singh said the Pentagon has not had a request from the State Department to do that. The department urged US citizens in Lebanon to maintain a low profile and review their security awareness in alerts this week.

State Department and White House officials say there are longstanding contingency plans for the potential evacuation of Americans in Lebanon but they have no information to suggest that those will become operational soon.

“We have evacuation plans available for places all over the world,” National Security Council spokesman John Kirby told reporters on Wednesday. “But I wouldn’t lead that to believe that we’re in a moment now where we think we need to imminently call for that or act on that right now.”

Other officials said US navy ships with marines on board are already well-positioned in the Mediterranean to assist if asked.