SEOUL—The South Korean military sought to persuade a soldier who killed five of his comrades in a shooting rampage to surrender late Sunday as an armed standoff unfolded close to the North Korean border.

The soldier fired multiple shots at troops that surrounded him earlier in the day, hitting one officer in the arm, a defense ministry official...