In a major security lapse, an undertrial prisoner who was brought to Saket Court for a hearing on Thursday was killed inside the court's lock-up after two men allegedly kicked him repeatedly and smashed his head on the wall in the presence of several prisoners.