Civilians on S Korea islands told to take shelter: Military