Apparently, someone in the Algerian government tipped him off before the attack.
See, Kirkman, this is what you get when you try the sensible diplomatic route.
This initial setback leads Kirkman to second-guess himself throughout the entire episode.

Credit: ABC/Sven Frenzel
She also reminds him hes constitutionally obligated to consult with Congress before going to war.
Kirkman:Thank you for your continued vigilance.
The commander says its 50/50, but hes confident theyll get the job done.

God have mercy on them, because the United States wont, says the commander.
Im guessing that epically quotable line was all the reassurance Kirkman needed, because he green-lights the mission.
Kirkman heads back to D.C. and meets with Kimble and Peter MacLeish a.k.a.
Congress to brief them on the Algeria plan.
Kirkman thinks its a good idea and tells Aaron to get to work.
It felt like the show was doing it because it thought it had to.
It shouldnt come as a surprise Hannah still suspects something is up with Peter.
Can you guess who was found in the rubble where room 105 shouldve been?
Thats right, Peter MacLeish.
However, Peter turns them down.
Speaker of the House is pure politics, he says.
Im not interested in power for powers sake.
He says being speaker would prevent him from actually serving the American people.
This speech makes me evenmoresuspicious of him.
Hannah takes this information to Jason, who finally believes her.
However, he orders her not to tell anyone.
(Who else suspects Jason might be involved, too?)
Its worth pointing out Peter didnt look too pleased about the missions success evenbeforeAdmiral Chernow shared the bad news.
Emily lied and said no, but it turns out she does.
Jeffrey Meyers is first lady Alex Kirkmans ex, and hes serving time in prison.
Emily lets Alex know Aarons been asking questions about him.
Alex decides to handle this situation herself and meets with Aaron after the mission to discuss it.
Aaron tells her Jeffrey has been telling his inmates that hes actually Leos father.
Alexs face tells it all: It could be true.
Aaron asks if Leo knows Kirkman might not be his father, and Alex simply shakes her head.
This little plot reveal made me roll my eyes so much.
But to be fair, we shouldve seensomethinglike this coming this is an ABC drama, after all.
When the SEALs return from Algeria, Kirkman is there at the Virginia base waiting for them.
They roll the fallen soldiers casket into an empty hangar where Kirkman can pay his respects.
At one point, Chief Marino, one of the SEALs he met before the mission, arrives.
Kirkman, feeling guilty, apologizes to Marino and says he shouldve waited.
However, Marino tells Kirkman he doesnt need to feel sorry none of them questioned his orders.
Extras: