Amid strife, Nigeria's ruling party elects new leader