Militants kill 21 people in two Iraq towns: officials