There was no immediate claim of responsibility for the attacks on Thursday but al-Shabab fighters have been trying to disrupt Somalia’s protracted parliamentary elections – part of efforts to rebuild the fractured nation after decades of war.