Police shot and killed a gunman on a boat on Bainbridge Island after he opened fire on the shoreline and officers for nearly two hours Saturday night.

Bainbridge Island Police Chief Matthew Hamner says calls came into 911 of shots coming from a vessel in Eagle Harbor around 8:30 p.m. When officers responded, 34-year-old Robert D. Yeiser in a boat was shooting at the shoreline.

Residents were notified to stay away from the area and shelter in place, while boaters were removed from the harbor.

A King County sheriff's helicopter hovered overhead and dropped flash bangs to try to get Yeiser to surrender. When officers approached the vessel, Yeiser appeared on the boat naked and pointed his weapon at police. Authorities say the officers had no choice but to open fire.

"We had an active shooter firing shots, we had witnesses calling 911 as we responded. Officers had to take cover because shots were being fired in their direction," said Bainbridge Island Police Chief Matthew Mamner.

Yeiser later died at the hospital. No other injuries were reported.

Chief Hamner said Yeiser is a caucasian male, who showed up at Bainbridge about a week or two ago. Hamner said Yeiser may have been living on his boat; his last known address was in Seattle.

Ferry service between Seattle and Bainbridge Island was shut down as a precaution; ferry service has since resumed.

The chief says there's likely damage from the gunshots Yeiser fired. No injuries were reported.

A thorough investigation is in progress by authorities.