Beheadings repulse Philippines as army on offensive