All seven attackers and a soldier were also killed in a Pakistani military rescue operation that was launched after the militants attacked the project camp, said a Pakistani government statement.
The operation was over, it added.
Pakistan's government said the gunmen recorded propaganda videos before killing the eight people.
Officials said the gunmen took about two dozen people hostage at the camp in Chagai district.
Australian and South African nationals had been among the hostages, according to the Baloch Liberation Front, which claimed responsibility for the attack, the latest setback to Pakistan's efforts to seek international investment in the volatile region.
The mine, like the region's deep-water Gwadar port, is guarded by Pakistani troops, officials said.
At least two Australians were among 30 miners reportedly taken hostage at the mine.
Australian Foreign Minister Penny Wong said Saturday her government had "serious concerns for the welfare of Australians and other workers" being held at the mining camp.
"Their welfare and safe release are our immediate priority," Wong said in a statement.
"This is a developing situation, and it will be an incredibly anxious time for the Australian families."
Pakistani security forces launched an operation to free the hostages, said Sarfraz Bugti, the chief minister of Balochistan province, which has faced a decades-long separatist insurgency.
with AP