US Secretary of State John Kerry said Thursday that massacres in two Nigerian towns by Islamist group Boko Haram this month constituted a "crime against humanity".