Nigerian soldiers killed in militants attack