Multifrequency studies of the narrow-line Seyfert 1 galaxy SBS 0846+513