A hacker targeted people in Australia, sending a message to their iPhones and iPads that their devices were locked unless they paid a ransom.