The alleged New Jersey terrorist charged with trying to blow up Chelsea last weekend with homemade bombs spent weeks getting an “Islamic education” at a Pakistani seminary, according to a report.

Ahman Khan Rahami spent three weeks in Kuchlak, an area described as a longtime “hub” for the Taliban, in 2011, a security official inside the country told the Guardian.

Rahami, 28, attended lectures at the Kaan Kuwa Naqshbandi madrasa.

US authorities have been tight-lipped with details of Rahami’s trips to Pakistan, acknowledging he was married during a visit to Quetta.

Security agencies inside Pakistan have tried to “hide all details” of his visits to Quetta, one anonymous official told the Guardian.

Rahami also visited Surkhab and Nushki, where a US drone killed Taliban leader Mullah Akhtar Mansoor in May.