One person was killed and two are in hospital after a man attacked police and members of the public with a knife in Melbourne, Australia.