Lagos, Nigeria (CNN) Nigerian soldiers raided the offices of a local newspaper and took away journalists who wrote an article that "divulged classified information" and put its troops' lives at risk, the army said Monday.

The Daily Trust said security agents "invaded" the newspaper's bureau in the country's troubled northeastern region and took away two journalists who worked on a story about the military's operations against terror group Boko Haram.

"The soldiers shut the gate of the Maiduguri regional office, after arresting the two editorial staff on sight at the time of the raid," the newspaper said on its website.

The army has faced fierce criticism following the raid. Garba Shehu, a spokesman for President Muhammadu Buhari, said on Sunday that the military had been ordered to leave the newspaper's premises and that differences should be worked out through dialogue.

The Federal Government has directed the military to vacate the premises of @daily_trust and the order has been complied with. Issues between the military and the newspaper as they affect the coverage of the war in the Northeast will be resolved through dialogue. — Garba Shehu (@GarShehu) January 6, 2019

The army said it did not arrest the journalists but "invited" them to discuss the security implications of the article.

Read More