Australian police are investigating how the father and son planned the attack and whether they had links to terrorist groups, including Islamic State.