China condemned an attack on a Shi'ite mosque in Islamabad, pledging support on Sunday for the Pakistan government's efforts to "maintain national security and stability."
China is "deeply shocked" by Friday's attack, the foreign ministry said in a statement.
An attacker opened fire at the gates of the mosque before setting off a suicide bomb and killing at least 31 people in the deadliest attack of its kind in Pakistan's capital in more than a decade.
Additionally, the Islamic State claimed responsibility for the attack in a statement on its Telegram channel. The terrorist group also released an image that it said showed the attacker holding a gun, his face covered and eyes blurred. Reuters could not immediately verify the photo.
Over 170 wounded in Islamabad mosque explosion
More than 170 others were wounded in the explosion, detonated after guards challenged the attacker as he made his way into the Khadija Tul Kubra Imambargah compound on the outskirts of the city, officials said.
Images from the site showed bloodied bodies lying on the carpeted mosque floor surrounded by shards of glass, debris, and panicked worshippers. Dozens more wounded were lying in the gardens of the compound as people called for help.
Survivors said they heard gunshots and seconds later, the blast, soon after the prayers began.