Chaotic dynamics in a neural network under electromagnetic radiation