A Polish military court has convicted and handed suspended prison terms in the retrial of four former and current army officers in the deaths of six Afghan civilians in 2007.

The five-judge panel on Thursday found the four, ranking from lieutenant junior grade to sergeant, guilty of being lax about their orders when they aimed mortar and machine-gun fire on the village of Nangar Khel, while serving on a NATO-led mission in Afghanistan. They were given suspended prison terms of between two years and six months.

The court cleared them of war crimes accusations. They had pleaded innocent, blaming faulty ammunition.

The four were acquitted in 2011, but the prosecutors appealed, insisting it was a war crime. It was the first time Poland's army held a war crimes trial.