An attack by jihadist group Boko Haram on the Chadian army killed around 40 people overnight near the Nigerian border, the government and local sources said Monday.