Each element, $r\,d\theta$, is not $r$ away from the central axis. As you move from the central axis not only does each element have a greater force exerted on it, $B\,i\,r\,d\theta\,\sin \theta$, the element is also a greater distance from the axis, $r\,\sin \theta$ where $\theta$ is the angle subtended between the central axis and the element.
Now find the contribution to the torque for each element and then integrate over the whole loop.