The Education Ministry will take action against a teacher who allegedly insulted security forces battling armed intruders in Lahad Datu, Sabah.