Development and characterization of scintillating fiber—APD-based detector