A person has died in Yorkshire from rabies after contact with a stray dog during a holiday in Morocco.