Development of a scintillating-fiber beam detector for the MUSE experiment