At least one person was critically injured after shots were fired outside a court building in the northwestern German city of Bielefeld.