The father of a missing 3-year-old who was arrested for abusing kids at an armed compound in New Mexico last week was training the youngsters to commit school shootings, new court documents allege.

Siraj Ibn Wahhaj was running weapons training at the dilapidated desert camp near the Colorado border where 11 starving children were found living in filthy conditions, prosecutors wrote in documents filed Wednesday.

Wahhaj was arrested last week with four other adults when sheriffs came looking for his missing son, Abdul-Ghani Wahhaj, but instead found the other children barefoot and dressed in dirty rags.

When authorities arrived, Wahhaj was “heavily armed” with an AR-15 rifle, five 30-round magazines and four loaded pistols, according to Taos County Sheriff Jerry Hogrefe.