A gunman killed four people and wounded one in the Australian city of Darwin on Tuesday, authorities said, in one of the country’s most violent attacks in years.