SEOUL — A South Korean ballistic missile malfunctioned and crashed into the ground during a live-fire drill with the United States, panicking confused residents of a coastal city already uneasy over increasingly provocative weapons tests by rival North Korea. The sound of the blast and subsequent fire on Tuesday night