A Mexican civilian court has freed the final three soldiers accused of homicide in a 2014 incident in which suspects were allegedly executed after they surrendered.

The federal Attorney General's Office said late Friday the three were absolved of charges of homicide, cover-up and alteration of evidence.

Questions about the deaths of 22 people in the township of Tlatlaya emerged when The Associated Press found that evidence at the site didn't match the army account of a clash with drug suspects. The government's Human Rights Commission later reported that its investigation determined that at least 12 and probably 15 people had been executed at the warehouse.

Three women who survived came forward to say that agents of the Mexico State prosecutor's office had tortured them to support the army's version.