Four soldiers operating with a New York-based Army National Guard division were killed Tuesday , and five soldiers and an American military contractor were wounded when insurgents attacked a patrol near Baiji , in northern Iraq , the American military said Wednesday .