A man is being detained by police in a courtroom.