Prosecutors said the suspects intended to store weapons in Berlin for possible use in an attack.