Link can eliminate the bats by first locking onto them, and then firing a Deku Seed from his Fairy Slingshot.