German authorities have summoned the US ambassador in Berlin after a man was arrested on suspicion of spying.