A tense standoff between Edmonton police and an armed man has come to an end with the man turning himself in after more than seven hours of negotiations in a northwest community, police said in a release Sunday.

Officers responded to a call at 117th Avenue and 89th Street in the Parkdale community before noon Sunday after reports of an armed man breaking into a home.

Barricades were set up as police negotiated with the man for hours.

At one point a shot was fired from a third-storey window, Insp. Gary Godziuk of the Edmonton Police Service said.

"So what makes this unique is that the individual … with occupants in the home, fired a shot outside from within, out of a window, the backdrop we determined was a tree," Godziuk said.

A man in his 30s — known to police — surrendered around 7 p.m.

Firearms and ammunition were found in the home, police said.

Details on possible charges aren't available until the investigation is complete.

Police say the public was not at risk, but the incident is serious.

"We don't know what [his] intent and engagement is. So we took it very seriously and that's why we responded the way we did, to protect the public."