(CNN) The five suspects accused of abusing 11 children at a New Mexico compound were training them to commit school shootings, prosecutors said Wednesday.

If the defendants were to "be released from custody, there is a substantial likelihood defendant may commit new crimes due to his planning and preparation for future school shootings," the court documents said.

The filings did not provide further details about the alleged training. The makeshift compound appeared to have a shooting range on the property and loaded firearms were found on the property, authorities said.

A foster parent of one of the children also said, "The defendant had trained the child in the use of an assault rifle in preparation for future school shootings," according to the court filings.

Allegations against the suspects come in the wake of the discovery that 11 starving children had been living in a filthy compound in Amalia, New Mexico, that lacked electricity or plumbing.

Read More