A judge has ordered 16 military members to remain behind bars while a probe into the deaths continues.