The president of the transitional government of Somalia narrowly escaped an assassination attempt on Monday when a suicide car bomber rammed into his convoy and blew up outside the Parliament building in Baidoa .