A NATO statement says the bomb was meant for a militant hideout but it malfunctioned and missed its target by more than two kilometers .