Japan urged residents to take shelter early Tuesday morning after North Korea fired a ballistic missile without warning