Prisoner shot, injured inside District and Sessions Court