The Pentagon has revealed more details about the raid that killed ISIL leader Abu Bakr al-Baghdadi earlier this week.

This included a declassified video showing US commandos entering the compound where Baghdadi was hiding.

Gen. Kenneth Mackenzie, commander of US Central Command, told a Pentagon news briefing that commandos killed four women and one man in the operation after they began shooting at a US aircraft involved in the attack.

He said 11 children found in the compound had been detained unharmed, adding that only two children, not three as previously said, had been killed when Baghdadi detonated the bomb that killed him.

General Mackenzie would not confirm President Donald Trump's description that Baghdadi died "crying and screaming all the way."

Mackenzie said Baghdadi "crawled into a hole with two young children and blew himself up while he was with him on the ground." He refused to reveal anything else about the last moments in Baghdadi's life.

"I can't confirm anything else about his last moments," he said, according to Bloomberg.

After Baghdadi himself was killed, commandos lifted large quantities of debris from the tunnel and removed his body parts, which were used to confirm DNA analysis and make sure that the person was Baghdadi before being dumped at sea within 24 hours.