A 13-year-old boy found at a New Mexico compound with the son of a controversial Brooklyn imam says he was being trained for “jihad” with firearm and hand-to-hand combat techniques, according to new court documents.

Siraj Ibn Wahhaj — whose dad runs a mosque in Bedford-Stuyvesant and has been linked to the 1993 World Trade Center bombings — was preparing the 13-year-old and his teen brother to fight against non-believers through techniques including rapid reloads and hand-to-hand combat, he told FBI agents.

The 13-year-old, whose mom was dating Wahhaj, was one of 11 kids and five adults found living at the squalid, armed compound in Taos County when it was raided on Aug. 3.

The body of Wahhaj’s 3-year-old son, Abdul-Ghani Wahhaj, was also found there.

The 13-year-old says he watched the man and his mom perform an “exorcism” ritual over the boy — including one in which the youngster choked and his heart stopped, according to a special agent’s affidavit filed in US District Court in New Mexico.

The adults involved initially faced state charges, but on Friday, were arrested by the Federal Bureau of Investigation and accused of conspiracy and firearms offenses.

The teen said his mom, Jany Leveille, and others at the compound told him not to talk to anyone about the 3-year-old ever being there because they would “all go to jail.”

Defense lawyers have argued that the five adults were exercising their constitutional rights to practice their religion and own firearms, and that the group is being discriminated against because they are black and Muslim.

They are scheduled to appear in court in Albuquerque on Tuesday.

With Post wires