WASHINGTON — Osama bin Laden’s son Hamza bin Laden, who was viewed as an eventual heir to the leadership of Al Qaeda and had repeatedly threatened to attack the United States, is dead, according to two American officials.

Details of the strike that killed him were scarce, including when and where. The United States government played a role in the operation, but it was not clear how, according to the officials, who discussed his death on the condition of anonymity because it involved sensitive operations and intelligence gathering.

Mr. bin Laden was killed sometime during the first two years of the Trump administration, officials said . He was killed before the State Department announced a $1 million reward for information about his whereabouts in February, but American military and intelligence agencies had not confirmed his death by then.

Though Mr. bin Laden carried a prominent name and lineage, the news of his death represented more of a symbolic victory for the American government than the removal of a threat. Al Qaeda has not carried out a large-scale attack in years, and though Mr. bin Laden was being groomed to eventually take over the group, that time appeared to be well into the future.