North Yorkshire Police have launched an investigation into the attempted murder