Nadine YousifBBC News, Washington
Watch: Trump feels "very badly" about location of Israeli strike on Doha - White House
The US has said Israel's strike on Hamas targets in Qatar "does not advance Israel or America's goals", adding that President Donald Trump "feels very badly" about the attack.
White House spokeswoman Karoline Leavitt read a statement from Trump at a briefing on Tuesday. It said the US was notified of Israel's attack on Hamas, with a strike "very unfortunately" taking place in the capital Doha.
It described Qatar as "a sovereign nation and close ally of the United States that is working very hard and bravely taking risks with us to broker peace".
Six people were killed in the strike, Hamas said, including one member of the Qatari security forces, but the group said its leadership team survived.
The Israeli military said it conducted a "precise strike" targeted at Hamas senior leaders using "precise munitions". Israeli media reported the operation involved 15 Israeli fighter jets, which fired 10 munitions against a single target.
Israel's Prime Minister Benjamin Netanyahu said he authorised the strike and there would be "no immunity" for Hamas leaders.
At the White House briefing on Tuesday, Leavitt said: "President Trump immediately directed Special Envoy [Steve] Witkoff to inform the Qataris of the impending attack, which he did. The president views Qatar as a strong ally and friend of the United States."
"The president also spoke to the emir and prime minister of Qatar and thanked them for their support and friendship to our country. He assured them that such a thing will not happen again on their soil," she added.
Leavitt said "eliminating Hamas, who have profited off the misery of those living in Gaza, is a worthy goal" and reiterated that Trump "wants all of the hostages in Gaza and the bodies of the dead released in this war to end now".
The attack took place on early Tuesday afternoon, with footage showing a badly damaged building in Doha.
Qatar's foreign ministry condemned the strike "in the strongest possible terms," and said the attack was a "blatant violation" of international law.
It later said that Qatari officials were not notified of the Israeli strike ahead of time, contradicting the US statement.
"The communication received from one of the US officials came during the sound of explosions," said Qatar's foreign ministry spokesperson Majed Al-Ansari in a post on X.
Leavitt did not specify when the US notified the Qataris of the attack.
Qatar has hosted Hamas's political bureau since 2012 and played a key role in facilitating indirect negotiations between the group and Israel since the 7 October attacks.
It has also been a close ally of the US. Around 10,000 American troops are stationed at a US airbase in al-Udeid, just outside Doha. In May, Trump announced a "historic" economic agreement signed between the two countries that he said is valued at least $1.2 trillion (£890bn).
Qatar has also recently gifted Trump a plane - valued at $400m - as an "unconditional gift" to be used as the new Air Force One, the official aircraft of the US president.
Hamas said their negotiating team in Doha survived Tuesday's attack, adding that the action "confirms beyond doubt that Netanyahu and his government do not want to reach any agreement" for peace.
It said it holds the US administration "jointly responsible" due to its ongoing support of Israel.
The office for Israeli Prime Minister Netanyahu put out a statement shortly after the strike, which said the attack was "a wholly independent Israeli operation".
"Israel initiated it, Israel conducted it, and Israel takes full responsibility," the statement said.
A few days prior to the attack, Hamas said it welcomed "some ideas" from the US on how to reach a Gaza ceasefire, and that it was discussing how to turn them "into a comprehensive agreement".
In its statement, the White House said Trump believes the "unfortunate" attack "could serve as an opportunity for peace," and that Netanyahu had expressed to him after the attack that "he wants to make peace and quickly".