A man accused of killing a Maui police officer last August must undergo a mental health exam before his trial can begin.