It was the latest violence in Africa's most populous country, which has long been battling a complex security crisis.