A lawyer for the Marblehead man accused of killing his pregnant girlfriend and her nearly full-term fetus has indicated in court for the first time that he plans to pursue an insanity defense.