The military said it attacked barges used by oil smugglers , while the militants said the attack targeted ethnic Ijaw communities .