NASA will launch a spacecraft next month to deliberately hit a pair of asteroids and test the United States' planetary defense system in a mission that aims to find out how best to protect humans from errant space rocks that could crash into the Earth.