A Model of ethnic conflict