The Omani national allegedly confessed that he planned the attack for over a year.