Four people were killed and five others injured during a shooting attack at a Tel Aviv shopping mall close to the Israeli defence ministry, Israeli police said on Wednesday.

Two Palestinian gunmen were captured on the scene and are cousins from the Hebron area, according to police.

The shooters, dressed in suits, sat at a table in a popular restaurant before leaping to their feet and opening fire indiscriminately on diners at nearby tables.

One of the gunmen was shot by police and taken to the Ichilov Hospital, where his victims were also being treated.