Five people died and foreign workers were taken hostage after gunmen attacked a Canadian-backed mining camp in Pakistan's Balochistan province.