(CNN) -- A massive manhunt involving "every guy who ever wore a badge" in northeast Montana ended late Saturday after police located the man they say shot and killed a woman and wounded two others.
Authorities in the town of Glasgow said a trail of blood led them to the alleged shooter, who was holed up inside a house.
Glen Meier, the sheriff of Valley County -- where Glasgow is located -- said the man "died of gunshot wounds." Authorities did not clarify if he committed suicide or was killed by officers.
The manhunt begun shortly after 5 p.m. Saturday, following a shooting near the ambulance barn of the Frances Mahon Deaconess Hospital in Glasgow, said Valley County sheriff's spokeswoman Samar Fay.
Immediately afterward, local officials in the town of 3,200 people launched their manhunt, enlisting the help of surrounding jurisdictions, tribal police, the FBI and the border patrol -- "every guy who ever wore a badge in this county," Fay said.
Authorities asked railway officials to halt trains going through the city. They used fire trucks to block roads leading in and out of Glasgow, resulting in long lines of cars and trucks that idled by the side of highways for five hours.
Residents were asked to stay inside, lock their doors and limit cell phone use so they did not to swamp the phone network with calls. A gymnasium where a basketball game was being held was also locked down for a brief period, Fay said.
About 11:30 p.m., tracker dogs followed a blood trail through the south side of town to a house where the suspected shooter was spotted.
Samar would not release the man's name or say how he died. "There will be a big investigation around that," she said.
The two victims who survived the shooting were hospitalized Sunday morning. Authorities said they did not know the motive for the attack.
CNN's Chandler Friedman contributed to this report.