The Brighton hostage gunman had reportedly planned a foiled terror attack on a Sydney army base

An armed police officer walks at the scene in the Melbourne bayside suburb of Brighton on June 5, 2017, after a woman was held against her will in an apartment block in an incident authorities had yet to determine whether was terrorism-related. Photo: Getty Images.

The gunman involved in the Brighton hostage situation which left two people dead last night had reportedly planned a foiled terror attack on an Australian army base.

According to the Herald Sun, Yacqub Khayre was charged and later acquitted over a suicide plot against Sydney’s Holsworthy army barracks in 2009.

Khayre later carried out a violent home invasion which saw him jailed for at least three years.

He was on parole at the time of the Brighton attack. Police saw him as a low-risk person of interest.

Khayre was killed by police at the scene after he shot a man who worked at the serviced apartments in which the incident took place. Before being shot himself, Khayre claimed the attack was for IS and Al Qaeda.