The assailant, a guard affiliated with the National Guard naval center in the town of Aghir on Djerba, first killed a colleague with his service weapon and then seized ammunition and sought to reach the Ghriba synagogue, the ministry said.
When he reached the area, he opened fire on security units stationed at the temple. The synagogue was locked down and those inside were kept secure while authorities investigate the motives for the attack, the ministry said.
It occurred during an annual pilgrimage that attracts thousands of visitors from around the world to one of Africa’s oldest synagogues.
A truck bombing killed some 20 people in 2002 at the entrance to the temple during the annual Jewish pilgrimage on Djerba. Al-Qaida claimed responsibility for that attack.
Djerba is home to Tunisia’s main Jewish community.