Deobandi militants kill 40 Shias