Movies go bad in all kinds of ways, but in “7 Days in Entebbe” the filmmakers found a brand new way for their movie to commit suicide. It happens, remarkably, in the movie’s last 10 minutes, in a jaw-dropping flame-out unlike anything I’ve ever witnessed.

Until then, “7 Days in Entebbe” is a tense and gripping historical thriller, recreating the terrorist hijacking of an Air France airliner in 1976 and the hostage drama that followed. As anyone who buys a ticket to this movie will know, the drama culminated in a stunning rescue operation by Israeli commandos.

A full half of the experience of “7 Days in Entebbe” is anticipating the big finish. But the big finish we get is ridiculous. Yes, the movie depicts the rescue operation, but it does so in a sparing way, just a few glimpses here and there. And it inter-cuts the rescue scene — this is amazing — with a modern dance performance. So it’s a few seconds of gun shots, and a few seconds of dancing to noisy percussive music, back and forth, back and forth, over and over until the movie is finished.

Apparently, at least according to this, one of the soldiers, Yoni Netanyahu, brother of the future president, had a girlfriend in a modern dance troupe. And for some reason, either Padilha or the screenwriters or both thought it would be a nifty idea to show her performing while the raid takes place: Somebody gets shot in Entebbe, and someone onstage falls down. That kind of thing. And give the filmmakers credit, they had an idea for something no one had ever done before. What they didn’t realize is the idea was horrible.

Yet until then, “7 Days in Entebbe” is a credible and arresting slice of history. The Air France jumbo jet, bound for Tel Aviv, is hijacked by German terrorists with ties to the Red Army Faction. They want to make a statement on behalf of the Palestinians, and their idea is that the Israeli government will release the terrorists in its prisons in exchange for the hostages.

The movie follows the crisis over its seven days, with several brief flashbacks to fill in the details. Just as dramatic as the scenes in Uganda are the deliberations within the Israeli cabinet, with the main clash coming between president Yitzhak Rabin and a wily politician.

Yet remembering everything good about “7 Days in Entebbe” is a little like remembering the first act of “Our American Cousin.” Yes, it was going well, but in light of subsequent events, it doesn’t much matter. Imagine if Kathryn Bigelow in “Zero Dark Thirty” had decided that what the Bin Laden raid really needed was some Irish step dancing. So first the Navy SEALS jump out of the helicopter and next we see the chorus line in “Riverdance.” Might have worked, right?

No. Not right at all.

MOVIE REVIEW

“7 Days in Entebbe”

Grade: B

Starring Rosamund Pike, Daniel Bruhl and Lior Ashkenazi. Directed by Jose Padilha.

Rated PG-13 for violence, some thematic material, drug use, smoking and brief strong language. 1 hour, 47 minutes.

Bottom line: A tense and gripping historical thriller without a proper ending