At least 27 Nigerian soldiers were killed in a jihadist suicide attack in the northeast, two army sources told AFP on Sunday.