QUETTA -  Two Pakistan Coast Guard officers were gunned down in a Balochistan city on Sunday in a district that is key to a Chinese-funded transport and energy project.

No one had claimed responsibility for the attack in the port district of Gwadar by late Sunday night. Police official Chakar Khan Baloch said the attack was in the seaside town of Jiwani near the Iranian border.

"Two people on a motorcycle targeted Pakistan Coast Guard personnel when they were patrolling in the bazaar of the coastal town," Baloch said. Two civilians were wounded and hospitalised, he added.

Baloch said the two men were working in the intelligence unit of the coast guard in Jiwani, about 80 km west of the Gwadar deepwater port.

"The victims received multiple bullet wounds in their bodies which caused their death on the spot," he said and added the dead were identified as Naik Mehmood and Sepoy Ishtiaq Ahmed.

Two civilians were also hit by the same firing.

They were recognised as Abid Hussain who is cousin of the coast guard who was killed in the firing. The other injured was recognised Muhammad Sabir. The injured were shifted to a hospital in Jiwani.

It was not clear whether the attack was connected to the port or the $46 billion China-Pakistan Economic Corridor (CPEC) project, a network of roads, railways and energy pipelines aiming to connect western Chinese cities to the sea port in Gwadar.

Militants trying to disrupt the CPEC project have killed 44 workers since 2014, an official said on Thursday, a rising toll likely to reinforce Chinese worry about the project's security.