Two Pakistan Coast Guard officers were gunned down in the south-western province of Balochistan on Sunday, police said.
No one had claimed responsibility for the attack in the port district of Gwadar by late Sunday night.
Militants have conducted attacks against security forces and national installations in Balochistan, which has been plagued by an insurgency and growing sectarian killings for more than a decade.
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 (50 miles) west of the Gwadar deep water port.