In this video released by the Tunisian government, police from the special counter-terrorist squad BAT are seen rescuing tourists who are sitting in a room.
One female tourist is seen being taken away on a stretcher with her leg covered in blood.
After an exchange of gunfire, the police officers are seen cheering and the two bodies of the militants are seen lying on the ground.
Militant gunmen killed 20 foreign tourists, including Japanese, Polish, Italian and Spanish visitors on March 18 as they got off buses at the Bardo Museum, inside the parliament compound that is normally heavily guarded.
It was the worst attack in more than a decade in Tunisia, testing the North African country's young democracy four years after the revolt that overthrew autocrat Zine El-Abidine Ben Ali and opened the way for free elections.
Tunisia said the attack was launched by a cell of 23 militants, including an Algerian and Moroccans, with overlapping allegiances to a number of hardline Islamist groups.