A man accused of trying to grab a California Highway Patrol officer’s gun during an altercation on Interstate 8 in Mission Valley, leaving the lawman shot in the leg, pleaded not guilty by reason of insanity Tuesday to charges that include attempted murder of a peace officer.