Authorities say several people have been injured following a reported attack at a school in the southern German state.