A 39-year-old woman has been arrested and is understood to have acted alone with no "political motive", German police say.