Muteiry died in a shootout with Saudi security forces in 2004 after the militant allegedly took part in an attack on foreigners in the oil city of Khobar .