SPRINGFIELD, Ill. - A federal judge has ruled against a U.S. pilot who sued the Air Force for allegedly ruining his reputation in a friendly fire bombing in Afghanistan that killed four Canadian soldiers.

Maj. Harry Schmidt filed a civil lawsuit in U.S. District Court in Springfield in April 2006 claiming the military violated the federal Privacy Act by disclosing parts of his military record without his permission.

The suit said military officials should not have released to the public a scathing letter of reprimand.

Schmidt's lawyer, Charles Gittins, has said the disclosure also violated a settlement agreement that prevented Schmidt from being court-martialled for the bombing.

On April 18, 2002, Schmidt and another pilot were flying F-16s when they spotted muzzle flashes near Kandahar airport. The Canadians were firing weapons on a training range but Schmidt mistook them for Taliban forces and dropped a 225-kilogram laser-guided bomb, killing Cpl. Ainsworth Dyer, Sgt. Marc Leger, Pte. Richard Green and Pte. Nathan Smith.

The four were the first Canadians to die in combat since the Korean War. Eight others were injured.

U.S. District Judge Jeanne Scott ruled in favour of the Air Force on Thursday, writing that "the competing public interest in disclosure clearly outweighs Schmidt's privacy interest."

"The release of Schmidt's reprimand gave the public, in the United States, and around the world, insight into the way in which the United States government was holding its pilot accountable. Thus considering all of the circumstances, the disclosures at issue were clearly warranted," Scott said.

Schmidt has said his superiors never told him the Canadians would be conducting live-fire exercises that night.

The second pilot received a letter of reprimand and was allowed to retire. He is not a party to the lawsuit.