12 killed as Libyan troops fire on mourners