The Bangladeshi terrorist who tried to blow up the Federal Reserve Bank yesterday in Manhattan had an associate in San Diego whom feds arrested on kiddie porn charges, a source told the Post.

Howard Willie Carter II was busted yesterday after agents found a hard drive containing a trove of kiddie porn in a dumpster outside of his apartment complex, court papers reveal.

E-mail accounts with the name “Yaqueen” were also found on the drive, documents state.

Yaqueen was listed as an co-conspirator of alleged terrorist, Quazi Mohammad Rezwanul Ahsan Nafis, 21, who was charged yesterday with trying to use a weapon of mass destruction, as well as providing material support to al Qaeda.

According to the complaint released yesterday, Yaqueen wanted to help in the attack.

Carter has not been slapped with terror charges, but he is “an associate of Nafis,” a law-enforcement source said.

According to documents, approximately 30 homemade videos were also found, including one filmed on an iPhone where he waved a sword in the air.

Approximately 1,000 photos of child pornography were also found.

Nafis was nabbed yesterday, allegedly trying to blow up the Federal Reserve Bank with what he thought was a 1,000-pound van bomb.

Nafis thought he had set up a cellphone detonator from a nearby hotel room, authorities said.

But the suspect didn’t know that his collaborators were actually undercover agents who were tracking his every move, according to a criminal complaint. The agents needed to wait until Nafis attempted to act in order to bust the college student, who attended Southeast Missouri University before transferring to a “vocational school here in New York.”

“You can’t arrest someone for what’s in their mind. You need a manisfestation of acts to effect an arrest,” Police Commissioner Ray Kelly said during a press conference about Nafis.

Nafis was allegedly bent on killing as many Americans as possible.

“I don’t want something that’s like small. I just want something big,” Nafis, 21, told an undercover agent during a recorded meeting this summer in Central Park.

“Something very big. Very very very very big, that will shake the whole country . . . that will make us one step closer to run the whole world. I want to do something that brothers coming after us can be inspired by us.”

Nafis even checked with a Bangladeshi source as to whether or not it was acceptable for women and children to die in the attempted attack.

““He checked with a source back in Bangledesh as to whether or not it would be alright or acceptable if women and children were killed and apparently he got permission to do that and he somehow came to the state of mind where this was acceptable to do,” Kelly said.

Nafis originally planned to detonate the explosives remotely, but was willing to become a suicide-bomber if he needed to.

“[Nafis] wanted to go back to Bangledesh but he was also willing to become a suicide bomber,” Kelly said. “His supposed intention was to stay alive to go back to B and then come back here.”

The al Qaeda-obsessed terrorist also recorded a video addressed to Americans right before he tried to detonate the bomb. Nafis “thought he was in communication” with someone involved with the terror group.

“We will not stop until we attain victory or martyrdom,” he said in the video, in which he covered his face, wore sunglasses and disguised his voice.

Loved ones of Nafis, can’t fathom how he allegedly tried to detonate a fake 1,000-pound car bomb outside the fed in lower Manhattan.

“My son can’t do it,” said dad Quazi Ahsanullah, weeping outside his home in the Jatrabari neighborhood in north Dhaka.

Quazi Ahsanullah, a banker, insisted he never saw a budding terrorist in his boy.

“He is very gentle and devoted to his studies,” said the heartbroken dad, citing his kid’s work at the private North South University in Dhaka.

But North South University spokesman Belal Ahmed said Nafis was a dunce who was put on academic probation and threatened with expulsion if he didn’t hit the books harder.

The failing student eventually stopped coming to school, according to Ahmed.

Nafis’ academic failures in Bangladesh nearly led to bloodshed in America, authorities said.

The suspect talked his dad into financing his school work in the United States, telling family it’d be worth the money.

“I spent all my savings to send him to America,” Ahsanullah said.

The devastated dad bankrolled Nafis to attend Southeast Missouri State University, where the suspect enrolled earlier this year.

“As you may be aware, an international student from Bangladesh was arrested yesterday in New York City and charged with attempting to bomb the New York Federal Reserve Bank Building,” Kenneth Dobbins, president of the school said in a statement released on Thursday.

He was there from January to May, pursuing a bachelor’s degree in cybersecurity, before leaving the school and requesting his records be transferred.

“I have met with the Federal Bureau of Investigation (FBI) and have been assured that there is no reason to be concerned about safety issues on the Southeast campus. The FBI has indicated that Southeast was never a target of terrorism and the campus community can rest assured that all possible safety and security procedures have been and are continuing to be followed,” Dobbins continued.

Nafis ended up in Queens, where he went on a mission to “destroy America,” according to a criminal complaint. Nafis worked “basically as a busboy” in Manhattan.

Nafis, who was held without bail, faces life in prison. He is being held at the Metropolitan Detention Center in Brooklyn.