Algeria beats Romania 2-1 in fan-marred friendly