The US has successfully struck a disabled spy satellite with a missile fired from a warship in waters west of Hawaii, military officials say.