Imaan Mazari granted bail in terror case