The terrorist group Al-Shabaab has claimed responsibility for a deadly attack on the United Nations in a northeastern Somali city on Monday.