I'm stuck

I can't get past these two boxes to grab a treasure, the box shines when I aim the bow at it but it does nothing when I shoot an arrow. Please help

I can't get past these two boxes to grab a treasure, the box shines when I aim the bow at it but it does nothing when I shoot an arrow. Please help