Four people have been arrested on suspicion of facilitating a suicide bombing that killed more than 30 people on Friday, Pakistan's interior minister has said.

Mohsin Naqvi said an Afghan national who is alleged to be the mastermind behind the attack was among those detained. One counter-terrorism officer was killed and three more were wounded in the raids to arrest the suspects, he added.

The Islamic State group has claimed responsibility for the bombing that targeted Friday prayers at the Shia mosque in the Tarlai area, when it was packed with worshippers.

More than 160 people were injured in the blast, which was the deadliest in the capital for more than a decade.

Huge crowds were seen in the city on Saturday, as thousands of mourners gathered for the funerals of the bombing's 32 victims.