At least four people were killed after a bomb exploded during the funeral of a pro-government army officer in Yemen's central Marib province.