(CNN) The husband-and-wife team behind the San Bernardino attacks had developed extremist views before they even met, the FBI director said Wednesday.

"They were actually radicalized before they started courting or dating each other online, and online as early as the end of 2013, they were talking to each other about jihad and martyrdom before they became engaged and then married and lived together in the United States," FBI Director James Comey said at a Senate oversight hearing.

"We also believe they were inspired by foreign terrorist organizations," he added. "We're working very hard to understand exactly their association and the source of their inspiration."

SWAT teams and a bomb squad were working to clear the buildings where the shootings took place.

SWAT teams and a bomb squad were working to clear the buildings where the shootings took place.

Police and fire personnel are seen near the site of the shooting.

Police and fire personnel are seen near the site of the shooting.

Two women embrace at a community center where family members were gathering to pick up people from the scene.

Two women embrace at a community center where family members were gathering to pick up people from the scene.

People walk away from the scene. It is unclear how many people were at the facility at the time of the shooting.

People walk away from the scene. It is unclear how many people were at the facility at the time of the shooting.

Police stand guard outside of the emergency room at the Loma Linda University Medical Center, where some of the victims were being treated.

Police stand guard outside of the emergency room at the Loma Linda University Medical Center, where some of the victims were being treated.

Luis Gutierrez gets emotional as he talks about his wife who works in the facility and saw a gunman, according to Los Angeles Times photographer Marcus Yam.

Luis Gutierrez gets emotional as he talks about his wife who works in the facility and saw a gunman, according to Los Angeles Times photographer Marcus Yam.

People leave a community center after reuniting with friends and family in the aftermath of the shootings.

People leave a community center after reuniting with friends and family in the aftermath of the shootings.

People pray on the San Bernardino Golf Course, across the street from where the shooting took place.

People pray on the San Bernardino Golf Course, across the street from where the shooting took place.

The residential area was not far from where the shooting occurred.

The residential area was not far from where the shooting occurred.

Police officers stand guard as they investigate a suspicious vehicle in Redlands, California, on Wednesday, December 2, after a mass shooting in nearby San Bernardino in which 14 people died and 21 were injured. The shooting took place at the Inland Regional Center, where employees with the county health department were attending a holiday event. The two shooters -- Syed Rizwan Farook and his wife, Tashfeen Malik -- were fatally shot in a gun battle with police hours after the initial incident. Farook worked for the county health department.

Police officers stand guard as they investigate a suspicious vehicle in Redlands, California, on Wednesday, December 2, after a mass shooting in nearby San Bernardino in which 14 people died and 21 were injured. The shooting took place at the Inland Regional Center, where employees with the county health department were attending a holiday event. The two shooters -- Syed Rizwan Farook and his wife, Tashfeen Malik -- were fatally shot in a gun battle with police hours after the initial incident. Farook worked for the county health department.

Investigators are also looking at whether Syed Rizwan Farook and Tashfeen Malik had "other plans either for that date (last week) or earlier," Comey said.

When asked by the Senate panel whether a terrorist operative or group arranged the couple's marriage, Comey stated: "I don't know the answer to that yet."

When pressed whether such an arranged marriage would be a "game changer" in the FBI investigation, Comey added, "It would be very, very important thing to know."

New details emerge on visa interview

Tashfeen Malik and Syed Rizwan Farook were photographed at Chicago's O'Hare International Airport in 2014.

If Malik had already radicalized years ago, how did she get the go-ahead to immigrate to the United States in 2014?

A senior State Department official told CNN on Wednesday that Malik was not asked about jihadist leanings when a U.S. consular official interviewed her in Pakistan for her fiancee visa application last year. That's because no red flags were found in the Department of Homeland Security application that was submitted and checked before the interview, the official said.

The consular officer who did the interview reported that Malik was able to answer enough questions about Farook to prove that she knew him well and that they had a personal relationship, a main focus of the consular interview process, according to two senior State Department officials.

After the interview, Malik passed two other security database checks before her visa was adjudicated. Records show the visa was decided on the day after the interview: May 23, 2014. Malik came to the United States on July 27 of that year. According to California marriage records, she married Farook just one month later.

Past plot with former neighbor?

As federal authorities attempt to piece together the circumstances surrounding the San Bernardino attack, they've been questioning Enrique Marquez, a former neighbor and friend of Farook.

Marquez bought two AR-15s years ago that were among the weapons Farook and his wife used in the shooting. He's also told investigators that he plotted another attack in California with Farook in 2012 , U.S. officials said. The pair abruptly abandoned their plan, according to the account Marquez gave investigators, because they were spooked by unrelated FBI arrests of four people charged with attempting to travel abroad to carry out jihad.

Marquez has told investigators he didn't know about the plans for the San Bernardino shooting attack. He has not been charged with a crime.

Officials caution that Marquez's claim of a 2012 attack could turn out to be false and an attempt to deflect his role in helping buy weapons that Farook later used in the San Bernardino attack.

Combing online communications

JUST WATCHED Officials: San Bernardino shooter took out $28,500 loan Replay More Videos ... MUST WATCH Officials: San Bernardino shooter took out $28,500 loan 01:23

Investigators are still trying to piece together profiles of the Farook and Malik, who killed 14 people at the Inland Regional Center in San Bernardino last week and died the same day in a gun battle with police. They're also working to pinpoint whether anyone in the United States or abroad helped finance and shape the plot.

The FBI has found online communications between the two killers from late 2013, before they began dating, indicating the two discussing jihad, Comey said.

Investigators have found data on a tablet computer and other cell phones at the couple's home. The FBI also has the benefits of data from U.S. intelligence agencies that collect foreign communications and from service providers for the accounts they used to communicate.

The final post on a Facebook page believed to be associated with Malik used the word "we" and pledged allegiance to ISIS, an indication, a U.S. official said, that it was a statement on behalf of both killers.