BAGHDAD — A suicide bomber opened fire on worshippers during Friday prayers at a mosque in northern Iraq and then blew himself up after running out of ammunition, killing 12 people, police and hospital officials said. The attacker walked into the Sunni mosque in Tal Afar and started firing on worshippers with an AK-47 rifle as the imam was delivering his sermon, a local police official said.