The prime minister’s office said officials agreed that Australia needed “immediate” reform, including new restrictions on who is allowed to own firearms.