Three soldiers and 123 Boko Haram militants were killed when the Islamist group attacked a Chadian army contingent in northern Cameroon, the Chadian military said Friday.