Two people were injured after shots were fired outside a court building in the northwestern German city of Bielefeld.