One person was killed and four others were injured, one of them seriously, in an attack by a person with a bladed weapon at a church in the southern city of Algeciras on Wednesday, Spain's interior ministry said, according to The Associated Press.

Authorities are investigating the incident as a possible act of terrorism. The attacker was arrested, but the interior ministry not identify the suspect.

The ministry said that the attack started inside the church of San Isidro, where the one person was seriously injured. The attacker then killed the sexton outside the church, the ministry said.

Some media described the weapon used by the stabber as a machete or samurai sword.

Spain’s National Court said a judge has opened an investigation into a possible act of terrorism over the attack.

Police are investigating the incident, the interior ministry said, to determine the "nature of the attack." It offered no further detail on the weapon that was used or on the attacker's possible motive.