CHICAGO — Smiling, laughing and occasionally thrusting his arms aloft, a man accused of trying to set off a bomb in downtown Chicago in an alleged terrorist plot told a federal judge on Friday that he believes the government is going to behead him because he is Muslim, but he insisted he was not crazy or unfit to stand trial.