Islamist militants hit Yemeni army posts, 18 dead