An armed group killed 20 troops and one civilian in jihadist-plagued western Niger on Tuesday, the defence ministry said, announcing three days of national mourning.