The militants opened fire from four off-road vehicles on worshippers inside the mosque during the sermon, blocking off escape routes from the area by blowing up cars and leaving the burning wrecks blocking the roads, three police officers on the scene said.