Japan's national space agency has confirmed its first moon landing, but the spacecraft's solar cells failed to generate electricity.