Gunmen killed four people in an attack on the Chinese consulate in Karachi.
Two of the dead are believed to be police officers and three of the attackers were also killed.
China said all the staff inside the consulate are safe.
A separatist group, the Balochistan Liberation Army, has claimed they carried out the attack. It is understood they oppose Chinese investment projects in western Pakistan.
Elsewhere, at least 20 people were killed in a bomb attack in north-west Pakistan. The blast occurred in a mostly Shia neighbourhood in Orakzai district. Police say a suicide bomber on a motorbike drove into a crowded marketplace.