Up to 50 people were killed in an attack carried out by suspected Boko Haram Islamists in a northeast Nigeria border town this week, the UN said Friday.