The air force says it targeted more than 400 gunmen in a forest as they were planning a village raid.