を攻撃した

attacked

→ を
phrase Rare #36,264
attacked を marks the thing or person that was attacked, and 攻撃した is the past form of 攻撃する (to attack).
JA: 敵が村を攻撃した。
EN: The enemy attacked the village.

彼らは敵を攻撃した

They attacked the enemy.

敵はその町を攻撃した

The enemy attacked the town.

みんなが僕の意見を攻撃した

Everyone attacked my opinion.

敵は夜に私達を攻撃した

The enemy attacked us at night.