A US Navy destroyer was heavily damaged in a collision with a Filipino-flagged ship off the south-west coast of Japan.