Fears of attacks by the Islamic extremist al-Shabab dogged the historic vote, which was limited to lawmakers instead of the population at large, with members of the upper and lower houses of parliament casting ballots at a heavily guarded former air force base in the capital, Mogadishu, while a security lockdown closed the international airport.