A Long Island man is accused of trying to kill his ex-wife just hours after she obtained a protection order against him.