An Australian soldier and a New Zealand soldier have been wounded in an "insider attack" after an Afghan soldier opened fire during a meeting in northern Afghanistan.

Australian soldiers returned fire and shot the Afghan National Security Force soldier, the Defence Department said in a statement.

Kabul's defence ministry confirmed the Afghan soldier was killed.

The attack happened on Saturday morning in the Qargha region near Kabul as Australian soldiers were meeting trainee Afghan officers.

Australian and other international personnel are carrying out training at the Afghan army's officer acadamy there.

The New Zealand defence force said the New Zealander was wounded in the foot after the Afghan soldier opened fire on a group of coalition soldiers who were leaving the meeting. The Australian suffered minor fragmentation wounds while providing protection. He is expected to return to duty shortly.

The acting chief of the Australian defence force, Air Marshal Mark Binskin, said others could have been hit but for the quick response of Australian soldiers at the meeting.

"From initial reporting, it would appear that our soldiers reacted promptly and professionally, potentially saving any other ISAF or Afghan personnel from sustaining wounds or worse," Binskin said.

"It is impossible to completely remove the threat of insider attacks, but the actions of the ADF force protection soldiers demonstrate that our training and force protection techniques are appropriate and prepared to respond, when incidents such as this occur."

Such insider attacks by Afghan troops, or insurgents in their uniforms, have left 15 foreign soldiers dead this year.