Two men shot and killed by a homeowner in a home invasion Thursday have been identified by the Brevard County Sheriff's Office.

Alvin Smalls, 20, of Titusville, and Amir Rashad Lynn, 18, of Mims, were shot and killed in the altercation, according to deputies.

The Brevard County Sheriff's Office said Smalls and Lynn broke into a home in the 1600 block of West Court, north of Titusville, and got into a fight with the residents; a man and a woman.

A man grabbed a gun to defend himself and shot the intruders, deputies said.

Smalls was found dead in the home, and Lynn collapsed outside, Sheriff's spokesman Tod Goodyear said. Lynn was taken to a hospital, where he was pronounced dead, Goodyear said.

The Sheriff's Office Friday would not release the names of the residents, citing Marsy's law that took effect Jan. 8.

More:How to sign up for FLORIDA TODAY's news alerts

More:Deputies investigate double shooting after home invasion

More:Police say Bridges employee fathered child with a woman with disabilities

"The names are being withheld due to the recent constitutional revision of Article 1, Section 16, 'Marsy’s Law,' which states: 'The right to prevent the disclosure of information or records that could be used to locate or harass the victim or the victim’s family, or which could disclose confidential or privileged information of the victim,' " the Sheriff's Office said.

The shooting remains under investigation. The State Attorney's Office would review the case once the investigation is complete.

Anyone with information can call Crimeline at 800-423-TIPS.

Support local journalism: Subscribe to FLORIDA TODAY at floridatoday.com/subscribe.

Stancil is a breaking news reporter for FLORIDA TODAY and TCPalm.

Contact Stancil at 321-242-3662 or 321-987-7179

or lamaur.stancil@tcpalm.com.

Twitter: @TCPalmLStancil