Afghan officials say that at least four foreign soldiers have been wounded after an Afghan soldier opened fire on them.