Incendiary devices hidden inside parcels at a German warehouse have caused several fires, the prosecutor general says.