A man was found dead from an apparent self-inflicted gunshot wound inside a Wallingford restaurant Monday morning after a police standoff lasting more than four hours, according to Seattle police.

Just before 7 a.m., a woman called 911 to report that her ex-boyfriend had threatened to kill her and had violated a domestic-violence court order that morning. After speaking with her, officers established probable cause to arrest him for the threats and court-order violation. Police said an arrest was mandatory under Washington's domestic-violence laws.

Officers from multiple precincts searched for the man and located him near his workplace in the 400 block of Northeast Northlake Way around 8:30 a.m. He fled into a restaurant. As officers followed, they heard suspected gunshots inside and withdrew to establish a perimeter.

Hostage negotiators attempted to contact the man while SWAT officers prepared to enter the building. He did not communicate with negotiators after the suspected gunshots, police said. The Seattle Police Department's Arson Bomb Squad brought its SPOT robot to get a closer look inside.

SWAT officers entered and found the man unresponsive with a gunshot wound. Seattle Fire Department medics pronounced him dead at the scene. Detectives will continue investigating and assist with support for the woman who reported the threats.