North Korea test-fires three ballistic missiles