Islamic militants kill three policemen, take 12 hostage