Scores of civilians, and some militants, emerged from the complex after troops launched an all-out assault in the early hours of Tuesday morning.

Some 1,300 people managed to leave the compound during the stand-off, but at least 21 people, including an army commander, were killed.

It is not clear how many people were inside the complex when it was stormed.

Questions, such as how many people died, still need to be answered, our correspondent says.

Cleric's funeral

The burials in Islamabad took place without ceremony in unmarked graves.

More than 1,000 mourners turned out for Mr Ghazi's funeral

Dozens of coffins with no names, but each with a number, were laid in the ground early on Thursday at a cemetery in the capital.

A cleric read verses from the Koran, Reuters news agency reported. No relatives were present.

In the village of Basti Abdullah in Punjab province, hundreds of people turned out for the funeral of Abdul Rashid Ghazi, the deputy leader of the mosque who the military says was killed in cross-fire.

His elder brother, Abdul Aziz, led prayers as mourners chanted God is Great and called for holy war.

Mr Aziz, the mosque's former leader, was arrested trying to flee the mosque during the siege and attended the funeral under heavy police guard.

"I lost my brother, my students, for the enforcement of Islamic Sharia," he told mourners.

RED MOSQUE STAND-OFF

3 July: Clashes erupt at mosque, 16 killed, after long student campaign for Islamic Sharia law