Tunisia said it would deploy the army to major cities and arrested nine people yesterday after 20 foreign tourists were shot dead in an attack on a museum which Islamic State militants called “the first drop of the rain”.

Japanese, Italian, Spanish and British visitors, as well as three Tunisians, were among the victims of the attack, which took place in the heavily guarded Parliament compound of a country largely spared the violent aftermath of the Arab Spring.

Officials did not confirm the militants’ claim of responsibility, but said they had identified two gunmen shot dead by security forces after the shootings, which targeted tourist buses visiting the Bardo museum on Wednesday.

The two gunmen were trained at a jihadist camp in Libya, the Tunisian government said. Interior ministry official Rafik Chelli said the two men had been recruited at mosques in Tunisia and travelled to Libya in September.

The two gunmen were trained at a jihadist camp in Libya, according to the Tunisian government

Cruise liner MSC Cruises said 12 of its passengers, including Colombians, French and a Belgian, were among the dead, while a Spanish couple was found alive yesterday after hiding all night in the museum.

The assault – the most deadly attack involving foreigners in Tunisia since a 2002 suicide bombing in Djerba – came at a fragile moment for a country just emerging to full democracy after its pioneering popular uprising four years ago.

A Spanish tourist who survived Wednesday’s attack on the national museum in Tunisia is pictured in a hospital room in Tunis. Photos: ReutersA Spanish tourist who survived Wednesday’s attack on the national museum in Tunisia is pictured in a hospital room in Tunis. Photos: Reuters

It is heavily reliant on foreign tourists to its beach resorts and desert treks, and the government was about to tackle politically sensitive reforms aimed at boosting economic growth. Islamic State, which has declared a caliphate in large parts of Iraq and Syria and is active in Tunisia’s chaotic neighbour Libya, praised the two attackers in an audio recording as “knights of the Islamic State” armed with machineguns and bombs.

Tunisians make up the one of the largest contingents of foreign fighters in Syria, Iraq and Libya, and their homeland’s young democracy, which has cracked down on militancy at home, was a clear potential target.

“We tell the apostates who sit on the chest of Muslim Tunisia: Wait for the glad tidings of what will harm you, o impure ones, for what you have seen today is the first drop of the rain,” the Islamic State audio said in Arabic.

The two dead militants were identified as Tunisians, Hatem al-Khashnawi and Yassin al-Abidi. Two local newspapers reported Abidi had spent time in Iraq and Libya.

Tunisia’s Prime Minister Habib Essid said Abidi had been under surveillance but “not for anything very special”.

“We have identified them, it is indeed these two terrorists,” the premier told French RTL radio earlier yesterday.

Tunisian authorities said they had arrested four people directly linked to the attack and five others with indirect ties. A security source said two family members of one of the gunmen were among those held. “We arrested the father and the sister of the terrorist Hatem Al-Khashnawi in the their home in Sbiba City,” the source said.

The President’s office said the army would be deployed as part of increased security following the attack.

“After a meeting with the armed forces, the president has decided large cities will be secured by the army,” it said.

Spain said the woman in the couple who emerged from the museum yesterday was pregnant.

“They were hidden this whole time, without daring to make a phone call, probably because they were anxious and scared,” Spanish Foreign Minister Jose Garcia-Margallo said.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.