Two Mississippi police officers were shot and one died Thursday during a standoff that started after a man took a woman hostage in a home, law enforcement agencies said.

The suspect also was shot and killed, at the home in the Jackson suburb of Brandon, state Department of Public Safety spokesperson Bailey Martin said in a statement.

Several law enforcement agencies responded during the standoff, which lasted more than eight hours. The officer killed was from the police department in another suburb, Madison. The injured officer is from the Brandon Police Department.

The Madison Police Department identified the slain officer as Randy Tyler, who had worked for the department eight years, was a member of its special response team and directed the training of newly hired officers. Tyler previously retired as police chief in nearby Ridgeland, Mississippi.

The Department of Public Safety did not immediately release the names of the Brandon officer or the suspect. The Madison officer was killed while trying to enter the home.

LITTLE ROCK CHARTER SCHOOL SYSTEM WELCOMES NEW CEO

Mississippi Fox News graphic

Mississippi police have identified the officer killed in a standoff during a hostage situation in Brandon. 

CLICK HERE TO GET THE FOX NEWS APP

Brandon police told WLBT-TV that the standoff began as a domestic dispute between a man and a woman.

Police Chief Wayne Dearman said the department received a call at 1:45 a.m., WAPT-TV reported. After talking for more than an hour with the suspect, the department’s SWAT team got into the house and rescued the hostage.

It was not immediately clear whether police shot and killed the suspect, or the person killed himself.

The Mississippi Bureau of Investigation is examining the case, as it does with most shootings of or by law enforcement officers in the state. After the investigation is finished, MBI will give its findings to the state attorney general's office, Martin said.