BEIRUT — Jordan’s King Abdullah II addressed the unprecedented public rift within the royal family for the first time Wednesday, portraying it as an attempted sedition involving his half brother that had been “nipped in the bud,” but caused him anger, pain and shock.

The monarch appeared to be doubling down on the allegations against Prince Hamzah, a former crown prince, while at the same time trying to reassure Jordanians that the nation was returning to business as usual. But even if the current crisis is eventually defused, major challenges loom for the Western-allied monarchy as it confronts growing internal dissent.

Wednesday’s statement, presented by a newsreader on Jordan TV, dealt with the internal crisis that erupted over the weekend when Hamzah was confined to his home and accused of being part of a plot to destabilize the kingdom.

Hamzah has denied the allegations, saying he was simply calling out long-running corruption and mismanagement in the kingdom.

The king said Wednesday that he was hurt by the recent events.

“The challenge over the past few days was not the most difficult or dangerous to the stability of our nation, but to me, it was the most painful,” he said. “Sedition came from within and without our one house, and nothing compares to my shock, pain, and anger as a brother and as the head of the Hashemite family, and as a leader of this proud people.”

Abdullah also suggested that there was continued control over Hamzah’s movements. The prince, who has not been seen or heard from in days, was “with his family at his palace, under my care,” the statement said.

There was no sign that authorities have released up to 18 other detainees, including members of one of the powerful tribes on which the monarchy has historically relied.

Authorities have imposed a sweeping gag order on any coverage of the royal dispute in a sign of how sensitive they are to how it is perceived. The gag order and the king’s willingness to sanction his own brother also reaffirmed what Jordanians understand as their “red line” — an absolute ban on criticizing the monarch or the royal family.

Bessma Momani, a professor of international relations at Ontario’s Waterloo University, said the crisis strengthened Hamzah’s popularity, making critics of the government and new followers rally behind him.

She said the king’s doubling-down on vague plot allegations could also create problems in the future. Prosecuting those detained, including members of a powerful tribe, could stir protests. If they are let go, more questions could arise about whether there was ever a plot.

Even before the palace drama, Jordan was grappling with an economic crisis exacerbated by the pandemic, with 1 in 4 people out of work. Longstanding complaints about corruption and misrule have fueled scattered protests in recent months.