A Myanmar military airstrike on a village in Rakhine state killed at least 40 people and injured over 20 others, officials say.