A siege has ended after armed police arrested a man who allegedly shot at officers in Melbourne’s outer western suburbs before barricading himself in a stranger’s home with a man and a toddler.