Segment-level Metric Learning for Few-shot Bioacoustic Event Detection