Mali’s army said unidentified “terrorist” groups had attacked several positions in the capital and elsewhere in the country.