Updated

Tunisian Prime Minister Habib Essid says his country needs jobs to counter the threat of terror attacks like the two this year that targeted tourists, but his nation's important tourism sector won't fully recover for another two to three years.

Essid tells The Associated Press in an interview that the unemployment rate in Tunisia is the biggest risk factor for future attacks.

Essid spoke Tuesday ahead of his appearance at an international conference on extremism by the Madrid Club group of former global leaders and heads of state.

An attack in March on the Bardo Museum killed 21 people. In June, 38 died in an attack at a resort in Sousse.

Most of those killed in the attacks were tourists.