Gunmen have staged a deadly attack in a district in Pakistan's restive Balochistan province.