Tunisian defense minister resigns to run for president