A Queensland man is charged with the attempted murder of a police officer at Murwillumbah, on the far north coast of NSW.