The miniboss isn't right after the first key shard. Right after the first key shard you go back through the room with the fire jets, platforms, and closing door, but on the ceiling, to a door up above which leads you back to the main big room where you first activate the moving magnet things...