A small experimental rocket launched by a Japanese aerospace startup failed shortly after takeoff Saturday when its onboard computer detected an abnormality and shut off the engine. It then crashed into the sea.