The case is the following: It’s probably an unusual case in Arvit (evening prayer), but it could happen. Somebody gets mixed up, and instead of saying Hashkivenu (Cause us to lie down), he ends with Baruch Atah Hashem, Go'el Yisrael (Blessed are You, Hashem, Redeemer of Israel), and starts the Amidah (the Standing Prayer). He could make a mistake and lose his concentration, so he says, like in the morning, Baruch Atah Yisrael, and starts the Amidah. What is he supposed to do? Of course, during the Amidah, there is nothing he can do. He finishes the Amidah. But should he repeat the Baruch Atah of Hashkivenu, or is that it; he is done?
There is a Chida who talks about a different case, but a similar one. It’s in the morning, and somebody skips the Baruch Atah of Go'el Yisrael altogether. In the middle of Emet (truth), he gets distracted again, says Mimitzrayim ge'altanu (From Egypt You redeemed us), and starts the Amidah. The Chida says that he remembers in the middle of the Amidah that he didn’t say the Beracha (blessing) of Baruch Atah Hashem, Go'el Yisrael. During the Amidah, there is nothing he can do. But after the Amidah, the Chida says, he has to say the Beracha of Go'el Yisrael, even after the Amidah. How does he do that? He says he has to say Keriat Shema (recitation of the Shema) again, because the Beracha of Go'el Yisrael is on something. He says Shema Yisrael (Hear, O Israel) again, and then Emet V'Yatziv V'Nachon (True, firm, and established), through the end, Baruch Atah Hashem (Blessed are You, Hashem), and that’s it. Meaning, he owes that Beracha, and he is going to have to say it after the Amidah.
It’s the same thing for our case. If a person skipped the Beracha of Hashkivenu, Moshe Feinstein brings that his father, who was also a posek halachot (halachic decisor), said it’s the same thing: when a person skipped the Beracha of Hashkivenu, he has to repeat the Beracha of Hashkivenu after the Amidah. There is one small difference, however, between the two cases. In the morning case, the Beracha of Go'el Yisrael really goes on the Keriat Shema, and he must say the Keriat Shema in order to be able to say the Beracha of Go'el Yisrael. But at night, it’s a little different, because the Beracha of Go'el Yisrael has already been said about the Keriat Shema. It would be better, says Chacham Ovadia in his pesak (ruling), to say Keriat Shema and Hashkivenu, but the bare minimum would be to repeat the Beracha of Hashkivenu. So although a person would have missed the Beracha of Hashkivenu, he would have to repeat the Beracha of Hashkivenu after the Amidah.

