The assault came on a day of violence that started when militants opened fire on troops in the former Islamist stronghold of Goundam, 80 kilometres (50 miles) from Timbuktu, killing two soldiers and a child.