BARNSTABLE, MASS. >> The former Coast Guardsman charged with killing a colleague and injuring two other people on Cape Cod is scheduled to go to trial May 31.

The Cape Cod Times reports that Adrian Loya's trial date was set by a judge Tuesday.

Loya is charged with fatally shooting Lisa Trubnikova and wounding her spouse, Anna, in Bourne in February 2015. Both were also in the Coast Guard. He's is also charged with wounding police Officer Jared MacDonald.

Loya, of Chesapeake, Virginia, has been at a state psychiatric facility for the past year.

His attorney plans to argue that Loya is not criminally responsible because of a mental disease.

Police say Loya wrote a 250-page essay stating his reasons for wanting to kill Lisa Trubnikova. They had met when stationed in Alaska.