German Chancellor Scholz criticizes Bavarian officials after knife attack