Three police officers were hurt in a stand-off lasting more than an hour at an apartment building in the beachside suburb of Brighton, police said in a statement. A second man had earlier been found dead from a gunshot wound, they said.
Victoria state police tried to negotiate with a man inside an apartment, they said in a post on their official account on social network Twitter, adding, "It's believed a woman is with him whom he won't allow to leave."
An hour later, police said the situation had been resolved with the woman rescued.
Three police employees suffered injuries during the incidents but they were not life-threatening, police said, without elaborating.
"The attack in Melbourne, Australia was carried out by a soldier of the Islamic State in response to the call for targeting the subjects of the coalition states," the group's Amaq news agency said.
(Reporting by Byron Kaye; Editing by Clarence Fernandez, Larry King)
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.