Beam instability of the plasma in pulsar magnetospheres