Several people were injured after a mortar attack struck the area around Somalia's parliamentary building, just as newly elected lawmakers had convened.