Two United Nations peacekeepers and one civilian have been killed in a gun and rocket attack in Mali.