Nigeria's military says it killed 38 suspected Islamic militants and lost a soldier when troops repulsed an attack on a northeastern farming village.

Spokesman Col. Muhammed Dole said soldiers informed of the insurgents' plan "to cause havoc and mayhem" were able to repel the attackers and inflict heavy casualties when extremists arrived at Damboa village in Borno state around 1 a.m. Thursday.

He said the soldiers captured three vehicles loaded with high-caliber weapons, ammunition, homemade bombs and food.

A military aircraft was pursuing fleeing attackers including some wounded in the shootout.

Dole made no mention of civilians who have suffered the biggest casualties in a 4-year-old Islamic uprising in northeast Nigeria, where the government has imposed a state of emergency since May.