At least two people have been killed after an attack on a popular tourist resort on the outskirts of Mali's capital, Bamako, but dozens of guests were rescued.