PM, president urge nation to unite against militants, terrorists