NMR study of magnetic properties in antiferromagnetic BaMnF4