At least five people have been killed and six others wounded in shootings at two Pakistani military posts in a semi-autonomous tribal region bordering Afghanistan .