A shootout near the Texas A&M University campus sparked by an eviction notice left three people dead Monday -- a police officer, a male civilian and the suspected gunman, police said.

Police said Thomas Alton Caffall, 35, opened fire on Brazos County Constable Brian Bachmann as the officer served him with an eviction notice.

Both men were later pronounced dead at a hospital.

The shooting occurred at an off-campus home near the university’s football stadium in College Station.

A 43-year-old man was also killed, College Station Assistant Police Chief Scott McCollum said. Three other law enforcement officers and a 55-year-old woman were wounded, he said.

Jon Agnew, a spokesperson with the police department in the sister city of Bryan, which is helping with the investigation, said the woman was rushed into surgery at a nearby hospital.

According to McCollum, more officers raced to the home after receiving a report that an officer had been shot. One of the officers shot the gunman before taking him into custody and he died sometime later.

Caffall's sister Courtney Clark briefly told The Associated Press Monday night that the family was "shocked" by the violence.

"Our hearts and prayers go out to the families and this is just a senseless tragedy," Clark said.

After the shooting, the university issued several alerts, beginning at 12:29 p.m. local time. The school issued a “code maroon,” telling residents to avoid the area southeast of the intersection of Welborn Road and George Bush Drive.

The school warned residents in the immediate area “to remain inside their residence.”

The school issued an alert at 12:44 p.m. to say that the shooter is in custody, but to “continue to avoid the area.”

Sherylon Carroll, a spokesperson with the university, said most students were not on campus since the school year is set to begin Aug. 27.

"It appeared to be fairly quiet," Carroll told The Associated Press. "It didn't appear to be a lot of people out and about at that particular time."

College Station police Sgt. Jason James told CP24 that police received multiple calls about the shooting.

Local media reports also suggested that more than 100 rounds of gunfire were heard.

Joe Brown, a spokesperson for the College Station Medical Center, said the facility received three patients with gunshot-related injuries: two who had gunshot wounds and another with shrapnel wounds.

Two other people who were in the area at the time of the shooting were brought to the hospital’s emergency room suffering from chest pains and dizziness, Brown told CTV News Channel.

Police secured the scene and blocked off the area.

According to the Texas Commission on Law Enforcement Officer Standards and Education, Bachmann worked for more than 19 years in law enforcement. He spent most of his career with the Brazos County Sheriff’s Office.

Texas Gov. Rick Perry, an A&M alumnus, said Monday that his “prayers are with any of those that have been injured."

A&M President R. Bowen Loftin issued a statement calling Monday a "sad day in the Bryan-College Station community."

The incident comes on the heels of two deadly shootings in the United States.

On July 20, 12 people were killed and 58 others wounded when a gunman opened fire during a midnight screening of the new Batman film in Colorado.

And one week ago, a gunman killed six worshippers at a Sikh temple near Milwaukee before being shot by a police officer and then turning his gun on himself.