You can lock onto up to 5 things at once.
See how the ground below it is in a backwards Z formation? Lock onto the first one, then follow the line until all three are locked onto. Press B to shoot, and Booyah!
You are going to use this method in later parts in the dungeon, and more intuitively.