A Coast Guardsman is accused of shooting two colleagues at a Cape Cod condo complex before shooting a police officer responding to the scene.