UP bar council president shot in court