Funerals take place after Afghan mosque attack