Spanish police officers guarding the border with Morocco in the Spanish North African enclave of Melilla stopped an attacker shouting "Allah is great" on at 7:35 a.m. Tuesday morning, news agency EFE reported.

The man was wielding a large knife.

As the man, dressed in a blue t-shirt, entered the area, he was surrounded by several officers, one of whom quickly had the bright idea of disabling the attacker with a chunk of traffic barrier.

He picked up the heavy plastic object and threw it at the attacker's head, knocking him on to the floor. His police colleagues jumped on the man an...