Oukabir posted this photo on Facebook just two days ago (Picture: Facebook)

At least 13 people have been killed (Picture: Facebook)

People were ordered to leave the area (Picture: AP)

It is not clear if the men who entered the restaurant with guns were inside the van at the time of the attack.

The incident is being treated as a terror attack by Spanish authorities.

A large area of the city centre has been cordoned off by police, with people urged to stay inside and metro stations closed down.

Will Ako, 26, from London, was eating in a restaurant called Taller De Tapas with his family when they heard a disturbance.

At least 32 people are injured (Picture: AP)

It is being treated as a terror attack (Picture: Getty)

He said: ‘We had just finished eating and were about to leave when we heard a commotion and the patrons in the restaurant rushing from their seats.

‘I then saw people running to the east of the restaurant and I saw a couple of people about 30 yards down the road crouching around what looked like someone on the ground and they were calling for assistance.

‘Within a couple of minutes, police started to arrive and they were running west of the restaurant and some were telling us to stay inside.

‘Soon after, loads of cars, bikes and ambulances arrived and then the armed police.’