N-Body simulation of gravitational interaction between planetesimals and a protoplanet