Hundreds of Boko Haram militants attacked a military post in southeastern Niger overnight, killing 16 soldiers and wounding nine more, the defence ministry said on Wednesday.