Six people, including a policeman, are killed and 28 injured in a rare shooting near a Shia mosque.