Five-body calculation of resonance and scattering states of pentaquark system