Technically, it is a fruit as it contains seeds. But most cookbooks refer to it as a vegetable.
To be frank, it doesn't matter. What matters is if you include it in your diet – because the benefits are amazing.