N. Korea fires ballistic missile that flew over Japan