Al Shabaab militants targeted Somalia's President Hassan Sheikh Mohamud in a bomb attack on his motorcade in Mogadishu on Tuesday.