Dynamical Model for Sympatric Speciation in an Ecological Niche