WASHINGTON (CNN) -- Former CIA Director David Petraeus testified on Capitol Hill Friday that the attack on the U.S. Consulate in Benghazi, Libya, was an act of terrorism committed by al Qaeda-linked militants.
That's according to Rep. Peter King of New York, who spoke to reporters after a closed hearing in the House, which lasted an hour and 20 minutes.
After he spoke at the House Intelligence hearing, Petraeus testified in front of the Senate Intelligence Committee. He was ushered into both sessions without reporters being able to get a camera shot of him, and after he testified he left the premises, CNN learned.
Petraeus' testimony was given one week after he resigned from the CIA. Lawmakers said they didn't asking him about why he left the agency. Petraeus has admitted an extra-marital affair with his biographer.
Critics of the administration suggested that his resignation might be linked to fallout over the attack.
King said the account Petraeus gave to representatives differed from the description the Obama administration gave in the days after the event.
On September 14, three days after the attack, it was described as "spontaneous," the result of a protest against an anti-Muslim film that got out of control outside the compound.
King said that the word "spontaneous" was "minimized" during Petraeus' testimony Friday.
"He had told us that this was a terrorist attack and there were terrorists involved from the start," King said. "I told him, my questions, I had a very different recollection of that (earlier account).
"The clear impression we (lawmakers) were given was that the overwhelming amount of evidence was that it arose out of a spontaneous demonstration and it was not a terrorist attack," he said.
The precise cause of that discrepancy is unclear, King said.
Several other lawmakers chalked it up to intelligence that was evolving and coming from numerous sources.
The Benghazi attack became a political hot button during a presidential election year and raised questions regarding issues such as security at the compound and the Obama administration's initial description of the events.
King told reporters that he likes Petraeus and that it was uncomfortable, at times, to interview a man he considers a friend.
"He was a strong soldier. Very professional, very knowledgeable, very strong," King said. "He's a solid guy. I consider him a friend, which made the questioning tough. You realize the human tragedy here."
The consulate attack, which occurred this past September 11, left four Americans dead, including U.S. Ambassador Chris Stevens.
Petraeus was not asked to testify under oath, King said.
King and other lawmakers said Petraeus testified that his resignation had nothing to do with the consulate attack.
That matches what Petraeus told Kyra Phillips of HLN, CNN's sister network. He said his resignation was solely a result of his extramarital affair with his biographer, Paula Broadwell. He added that he never passed classified information to her.
Prior to Friday's hearings, it was thought that Petraeus would tell lawmakers that the CIA knew soon after the attack that Ansar al Sharia was responsible for it, according to an official with knowledge of the case. The official spoke on condition of anonymity because of the sensitivity of the subject matter.
Ansar al Sharia is more of a label than an organization, one that's been adopted by conservative Salafist groups across the Arab world.
It's unclear to media whether Petraeus spoke specifically about Ansar al Sharia in Friday's sessions.
After the House committee hearing, Rep. Dutch Ruppersberger, D-Maryland, said the confusion over the consulate incident arose from there being essentially two threads of violence: one caused by the protest, which was chaotic, and a second that was orchestrated by terrorists, which was highly coordinated.
There were "two different types of situations at play," Ruppersberger said, explaining that in the hours and days after the attack, it was naturally difficult to clearly discern what happened.
Intelligence evolves, he said, and new information comes out when agents obtain it. He played down the idea that there was something untoward going on.
The former CIA chief has said there was a stream of intelligence from multiple sources, including video at the scene, that indicated Ansar al Sharia was behind the attack, according to an official with knowledge of the situation.
Meanwhile, separate intelligence indicated the violence at the consulate was inspired by protests in Egypt over an ostensibly anti-Islam film clip that was privately produced in the United States. The movie, "Innocence of Muslims," portrayed the Prophet Mohammed as a womanizing buffoon.
There were 20 intelligence reports that indicated that anger
about the film may be to blame, the official said.
The CIA eventually disproved those reports, but not before Petraeus' initial briefing to Congress the day after the attack when he discussed who might be behind the attack and what prompted it. During that briefing, he raised Ansar al Sharia's possible connection as well as outrage about the film, the official said.
Earlier, an official said that Petraeus' aim in testifying was to clear up "a lot of misrepresentations of what he told Congress initially."
Petraeus testified that he developed unclassified talking points in the days after the attack but he had no direct involvement in developing the ones used by Susan Rice, the U.S. ambassador to the United Nations, King said.
Rice has been under fire for suggesting the attack on the consulate was a spontaneous event spurred by a protest against the anti-Muslim film.
The three unclassified talking points that were used by Rice on September 16 were read aloud to reporters on the Hill Friday.
-- The currently available information suggests that the demonstrations in Benghazi were spontaneously inspired by the protests at the US Embassy in Cairo and evolved into a direct assault against the U.S. diplomatic post in Benghazi and subsequently its annex. There are indications that extremists participated in the violent demonstrations.
-- This assessment may change as additional information is collected and analyzed and as currently available information continues to be evaluated.
-- The investigation is ongoing, and the U.S. government is working with Libyan authorities to bring to justice those responsible for the deaths of U.S. citizens.
Sen. Dianne Feinstein, the California Democrat who leads the Intelligence Committee, read the points to journalists and vigorously defended Rice.
Feinstein said lawmakers should be careful not to "pillory" someone for intelligence failings.
"We have seen wrong intelligence before and it all surrounded our going into Iraq, and a lot of people were killed based on bad intelligence," she said. "And I don't think that is fair game. I think mistakes get made. You don't pillory the person.
"To select Ambassador Rice because she used an unclassified talking point, to say that she is unqualified to be secretary of state, I think, is a mistake," the senior lawmaker said. "And the way it keeps going it is almost as if the intent is to assassinate her character."
There has been speculation that Rice was among the people being considered as a replacement for Secretary of State Hillary Clinton, if she steps down as she has indicated.
But the committee's senior Republican, Saxby Chambliss of Georgia, said he doesn't think the issue is settled.
He said the concern is not whether the talking points were correct, but that Rice didn't go far enough.
"She knew at that point and time that al Qaeda was very likely responsible in part or in whole for the death of Ambassador Stevens," he said, intimating that Rice should have said that.
CNN's Dana Bash, Barbara Starr, Suzanne Kelley, Ted Barrett and Chelsea J. Carter contributed to this report.