The army claimed it had regained control after the coordinated assaults on several towns and cities by Tuareg rebels and Islamists.