Investigators on Monday arrested three German nationals suspected of spying for China by providing access to secret maritime technology, prosecutors said — a case that could stoke new tensions between Berlin and Beijing.