President Donald Trump has suspended the US green card lottery scheme in the wake of a mass shooting at Brown University last week in which two people were killed.

The suspect, a Portuguese man who was found dead on Thursday, entered the country through the diversity lottery immigrant visa programme (DV1) in 2017 and was granted a green card.

Homeland Security Secretary Kristi Noem said she has paused the visa scheme under Trump's direction to ensure no more Americans are harmed by this disastrous programme.

US officials said they believe the suspect, 48-year-old Claudio Neves Valente, also killed Portuguese Massachusetts Institute of Technology professor Nuno Loureiro earlier this week.

The programme makes up to 50,000 visas available each year through a random selection process among entries from countries with low rates of immigration to the US.

Writing on social media, Noem said Trump had previously fought to end the scheme in 2017 after eight people were killed in a truck-ramming attack in New York City.

Her comments come just hours after Neves Valente was found dead in a storage facility in Salem, New Hampshire, from what police believe is a self-inflicted gunshot wound.

Police said video evidence and tips from the public led investigators to a car rental location where they found the suspect's name and matched him to their person of interest, following a six-day multi-state manhunt.

Authorities have not provided any suspected motive for either of the attacks. Two students were killed and nine others were injured as a gunman burst into Brown University's engineering building on 13 December and opened fire during final exams.