US space agency declares success in mission to test technology that could divert the course of deadly objects