Gunmen have attacked a Pakistani security post in the resource-rich province of Baluchistan killing four paramilitary soldiers, officials said on Monday.