At least 21 insurgents and 11 members of the security forces were killed in Myanmar's troubled Rakhine state on Friday when militants staged a major coordinated attack on 24 police posts and an army base, the military said.